server {
listen 443 ssl http2;
server_name www.example.com.cn;
ssl_certificate www.example.com.cn.crt;
ssl_certificate_key www.example.com.cn.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_pass https://127.0.0.1:8443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 120s;
client_max_body_size 20m;
}
}
nginx做反向代理配置https网站
文章链接:https://www.ipaddr.host/nginx-as-the-reverse-proxy-to-configure-https-website.html
码字不易,转载请注明本文出处及文章链接。
码字不易,转载请注明本文出处及文章链接。
这篇文章还没有人留言,快来抢沙发吧。