配置内容
server {
listen 443;
server_name www.xxx.com;
ssl on;
ssl_certificate /root/data/ssl/1_www.xxx.com_bundle.crt;
ssl_certificate_key /root/data/ssl/2_www.xxx.com.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
#禁止在header中出现服务器版本,防止黑客利用版本漏洞攻击
server_tokens off;
root /data/client/xcx/platform;
index index.php index.html index.htm;
location /shop/ {
proxy_pass http://a.balance/shop/;#代理到本地服务器
proxy_set_header Host $host;
proxy_cookie_path /tracking /platform;#中间有个空格 带上cookies
#try_files $uri $uri/ /platform/index.html;
}
}