...
|
...
|
@@ -6,6 +6,17 @@ server |
|
|
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
|
|
|
error_log /Data/logs/error_wap.yohobuy.com.log warn;
|
|
|
|
|
|
# old idc
|
|
|
include vhosts/location/yohobuywap_idc.conf;
|
|
|
# app
|
|
|
include vhosts/location/yohobuywap_app.conf;
|
|
|
# php
|
|
|
include vhosts/location/yohobuywap_php.conf;
|
|
|
# node
|
|
|
include vhosts/location/yohobuywap_node.conf;
|
|
|
# static file
|
|
|
include vhosts/location/yohobuywap_static.conf;
|
|
|
|
|
|
#for wechat pay
|
|
|
location ^~ /home/orders/pay {
|
|
|
proxy_redirect off;
|
...
|
...
|
@@ -40,14 +51,13 @@ server |
|
|
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/yohobuy.pem;
|
|
|
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/yohobuy.key;
|
|
|
|
|
|
# https key
|
|
|
include vhosts/location/yohobuywap_httpskey.conf;
|
|
|
|
|
|
root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
|
|
|
|
|
|
access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
|
|
|
error_log /Data/logs/error_wap.yohobuy.com.log warn;
|
|
|
|
|
|
# https key
|
|
|
include vhosts/location/yohobuywap_httpskey.conf;
|
|
|
# old idc
|
|
|
include vhosts/location/yohobuywap_idc.conf;
|
|
|
# app
|
...
|
...
|
@@ -67,6 +77,15 @@ server |
|
|
return 301 http://$host$request_uri;
|
|
|
}
|
|
|
|
|
|
location / {
|
|
|
proxy_redirect off;
|
|
|
proxy_pass http://yohobuy;
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
proxy_set_header Accept-Encoding "gzip";
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
server
|
...
|
...
|
|