Nginx 配置 HTTPS SSL 代理
Posted vipsoft
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx 配置 HTTPS SSL 代理相关的知识,希望对你有一定的参考价值。
配置文件如下:
#user nobody; worker_processes 1; events worker_connections 1024; http include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream tomcats server www.ironfo.com:443; server listen 80; server_name localhost; location / proxy_pass https://tomcats; index index.html index.htm; error_page 500 502 503 504 /50x.html; location = /50x.html root html;
[root@localhost sbin]# ./nginx -V nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream_ssl_preread_module --with-stream_ssl_module [root@localhost sbin]#
以上是关于Nginx 配置 HTTPS SSL 代理的主要内容,如果未能解决你的问题,请参考以下文章