nginx配置https证书访问
emer 发布于 2018-4-27 12:02 2385 次阅读
server {
listen 80;
listen 443 ssl spdy;
server_name lovelining.com;
ssl_certificate F:\phpstudy/nginx/ssl/1_lovelining.com_bundle.crt;
ssl_certificate_key F:/phpstudy/nginx/ssl/2_lovelining.com.key;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:3000;
}
}