Authored by 梁志锋

增加百度站长的验证文件

ssl on;
ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem;
ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
... ...
## old idc
location = /erp2goods {
#location = /erp2goods {
# proxy_redirect off;
# proxy_pass http://yohobuy-old-www;
# 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";
# }
location ^~ /passport/auth/signin {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
proxy_set_header Host $host;
... ... @@ -9,16 +18,7 @@
proxy_set_header Accept-Encoding "gzip";
}
location = /passport/auth/signin {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
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";
}
location = /live/index {
location ^~ /live/index {
proxy_redirect off;
proxy_pass http://yohobuy-old-www;
proxy_set_header Host $host;
... ... @@ -68,6 +68,15 @@
# return 301 http://item.yohobuy.com$request_uri;
# }
location ^~ /product/pro_ {
proxy_redirect off;
proxy_pass http://yohobuy;
proxy_set_header Host item.yohobuy.com;
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";
}
location ^~ /brands/ {
rewrite /brands/$ http://www.yohobuy.com/brands permanent;
}
... ...
... ... @@ -4,6 +4,7 @@ server
server_name *.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error.pc.yohobuy.com.log warn;
# static file
... ... @@ -34,14 +35,12 @@ server
listen 443;
server_name *.yohobuy.com;
/Data/local/nginx-1.8.0/conf/ssl/pc/server.key
/Data/local/nginx-1.8.0/conf/ssl/pc/server.pem crt
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error.pc.yohobuy.com.log warn;
# static file
... ... @@ -57,13 +56,13 @@ server
return 301 https://www.yohobuy.com/;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
location ^~ /resource/getbanner {
rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent;
}
location / {
proxy_redirect off;
proxy_pass http://yohobuy_pc;
proxy_pass http://yohobuy-pc;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
... ... @@ -76,6 +75,7 @@ server
listen 80;
server_name admin.yohobuy.com union.yohobuy.com;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location / {
... ... @@ -95,6 +95,9 @@ server
server_name huodong.yohobuy.com;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location ^~ /cuxiao {
proxy_redirect off;
proxy_pass http://yohobuy-pc;
... ... @@ -122,9 +125,11 @@ server
listen 443;
server_name huodong.yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public;
location ^~ /cuxiao {
... ... @@ -155,8 +160,10 @@ server
listen 443 ssl;
server_name yohobuy.com;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem;
ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key;
error_log /Data/logs/error_pc.yohobuy.com.log warn;
location = / {
return 301 https://www.yohobuy.com/;
... ...