centos7Nginx通过反向代理设置https配置多端口访问

Https server配置

96 # HTTPS server
97
98 server {
99 listen 80;
100 listen 443 ssl;
101 server_name www.lidengxxxx.top;
102
103 ssl_certificate cert/server.crt;
104 ssl_certificate_key cert/server.key;
105
106 ssl_session_cache shared:SSL:1m;
107 ssl_session_timeout 5m;
108
109 ssl_ciphers HIGH:!aNULL:!MD5;
110 ssl_prefer_server_ciphers on;
111
112 location / {
113 root html;
114 index index.html index.htm;
115 }
116 location /order {
117 proxy_pass http://www.lidengxxxx.top:8254/order;
118 proxy_redirect off;
119 proxy_set_header X-Real-IP $remote_addr;
120 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
121 }
122 }

猜你喜欢

转载自blog.csdn.net/weixin_43404791/article/details/108635223