Authored by 梁志锋

增加百度站长的校验文件

@@ -221,4 +221,9 @@ @@ -221,4 +221,9 @@
221 221
222 location =/brand/index/about{ 222 location =/brand/index/about{
223 return 301 https://$host$request_uri; 223 return 301 https://$host$request_uri;
224 - }  
  224 + }
  225 +
  226 + # product detail page 301 redirect to item use https
  227 + location ^~ /product/pro_ {
  228 + return 301 https://item.m.yohobuy.com$request_uri;
  229 + }
1 -  
2 - # app show help page  
3 - location =/help/shareorder.html {  
4 - root /Data/PE/yohobuy_H5/assets;  
5 - expires 7d;  
6 - }  
7 -  
8 - # product detail page 301 redirect to item use https  
9 - location ^~ /product/pro_ {  
10 - return 301 https://item.m.yohobuy.com$request_uri;  
11 - }  
12 -  
13 - location / {  
14 - proxy_redirect off;  
15 - proxy_pass http://yohobuy;  
16 - proxy_set_header Host $host;  
17 - proxy_set_header X-Real-IP $remote_addr;  
18 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
19 - proxy_set_header Accept-Encoding "gzip";  
20 - }  
@@ -13,6 +13,18 @@ @@ -13,6 +13,18 @@
13 } 13 }
14 14
15 location = /error.html { 15 location = /error.html {
  16 + root /Data/PE/yohobuy_H5/assets;
  17 + expires 7d;
  18 + }
  19 +
  20 + # app show help page
  21 + location =/help/shareorder.html {
  22 + root /Data/PE/yohobuy_H5/assets;
  23 + expires 7d;
  24 + }
  25 +
  26 + ##百度站长的校验文件, 百度站长账号feng322169 密码yoho9646
  27 + location = /baidu_verify_bXX90VTyvs.html {
16 root /Data/PE/yohobuy_H5/assets; 28 root /Data/PE/yohobuy_H5/assets;
17 expires 7d; 29 expires 7d;
18 - }  
  30 + }
@@ -6,6 +6,17 @@ server @@ -6,6 +6,17 @@ server
6 access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; 6 access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
7 error_log /Data/logs/error_wap.yohobuy.com.log warn; 7 error_log /Data/logs/error_wap.yohobuy.com.log warn;
8 8
  9 + # old idc
  10 + include vhosts/location/yohobuywap_idc.conf;
  11 + # app
  12 + include vhosts/location/yohobuywap_app.conf;
  13 + # php
  14 + include vhosts/location/yohobuywap_php.conf;
  15 + # node
  16 + include vhosts/location/yohobuywap_node.conf;
  17 + # static file
  18 + include vhosts/location/yohobuywap_static.conf;
  19 +
9 #for wechat pay 20 #for wechat pay
10 location ^~ /home/orders/pay { 21 location ^~ /home/orders/pay {
11 proxy_redirect off; 22 proxy_redirect off;
@@ -40,14 +51,13 @@ server @@ -40,14 +51,13 @@ server
40 ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/yohobuy.pem; 51 ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/yohobuy.pem;
41 ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/yohobuy.key; 52 ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/yohobuy.key;
42 53
43 - # https key  
44 - include vhosts/location/yohobuywap_httpskey.conf;  
45 -  
46 root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; 54 root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
47 55
48 access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; 56 access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
49 error_log /Data/logs/error_wap.yohobuy.com.log warn; 57 error_log /Data/logs/error_wap.yohobuy.com.log warn;
50 58
  59 + # https key
  60 + include vhosts/location/yohobuywap_httpskey.conf;
51 # old idc 61 # old idc
52 include vhosts/location/yohobuywap_idc.conf; 62 include vhosts/location/yohobuywap_idc.conf;
53 # app 63 # app
@@ -67,6 +77,15 @@ server @@ -67,6 +77,15 @@ server
67 return 301 http://$host$request_uri; 77 return 301 http://$host$request_uri;
68 } 78 }
69 79
  80 + location / {
  81 + proxy_redirect off;
  82 + proxy_pass http://yohobuy;
  83 + proxy_set_header Host $host;
  84 + proxy_set_header X-Real-IP $remote_addr;
  85 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  86 + proxy_set_header Accept-Encoding "gzip";
  87 + }
  88 +
70 } 89 }
71 90
72 server 91 server