Authored by 梁志锋

增加百度站长的校验文件

8vjAQPvB6R
\ No newline at end of file
bXX90VTyvs
\ No newline at end of file
... ...
... ... @@ -221,4 +221,9 @@
location =/brand/index/about{
return 301 https://$host$request_uri;
}
\ No newline at end of file
}
# product detail page 301 redirect to item use https
location ^~ /product/pro_ {
return 301 https://item.m.yohobuy.com$request_uri;
}
\ No newline at end of file
... ...
# app show help page
location =/help/shareorder.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
# product detail page 301 redirect to item use https
location ^~ /product/pro_ {
return 301 https://item.m.yohobuy.com$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";
}
... ... @@ -13,6 +13,18 @@
}
location = /error.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
# app show help page
location =/help/shareorder.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
##百度站长的校验文件, 百度站长账号feng322169 密码yoho9646
location = /baidu_verify_bXX90VTyvs.html {
root /Data/PE/yohobuy_H5/assets;
expires 7d;
}
\ No newline at end of file
}
\ No newline at end of file
... ...
... ... @@ -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
... ...