server {
listen 443;
server_name www.ng67.cn;
ssl_certificate ssl/1_www.ng67.cn_bundle.crt;
ssl_certificate_key ssl/2_www.ng67.cn.key;
ssl on;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /
{
proxy_pass http://www.ng67.cn;
}
location /ws {
proxy_pass http://www.ng67.cn:7000/; # 代理到上面的地址去
proxy_read_timeout 60s;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
}
}