[root @start]# cat /data/cluster/web/conf/nginx_www/nginx_www.conf
server {
listen 443 ssl;
server_name nginxwww.com;
charset utf-8;
ssl_certificate /data/cluster/web/conf/nginx_www/nginxwww.pem;
ssl_certificate_key /data/cluster/web/conf/nginx_www/nginxwww.key;
location / {
root /data/giftcard;
index index.html index.js index.php index.htm;
}
# e-cards url访问
location /e-cards {
proxy_pass http://127.0.0.1:6606/e-cards;
# 代理头 传递 remote_addr变量 给X-Real-IP
proxy_set_header X-Real-IP $remote_addr;
# 代理头 传递 host变量 给 Host
proxy_set_header Host $host;
# 代理头 传递 proxy_add_x_forwarded_for 给 X-Forwared-For
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 代理头 传递 schema 变量 给 X-Forwarded-Proto
proxy_set_header X-Forwarded-Proto $scheme;
}
# 日志
acc