nginx配置https证书访问

Others 2018-04-27 04:02:59 2018-04-27 04:02:59 2409 次浏览

 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;
     }
}