Showing
4 changed files
with
29 additions
and
29 deletions
@@ -23,18 +23,18 @@ class Yohobuy | @@ -23,18 +23,18 @@ class Yohobuy | ||
23 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 23 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
24 | 24 | ||
25 | //java API | 25 | //java API |
26 | -// const API_URL = 'http://api.yoho.yohoops.org/'; | ||
27 | -// const API_URL2 = 'http://api.yoho.yohoops.org/'; | ||
28 | -// const SERVICE_URL = 'http://service.yoho.yohoops.org/'; | ||
29 | -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | -// const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
31 | -// const SERVICE_NOTIFY = 'http://service.yoho.cn/'; | 26 | + const API_URL = 'http://api.yoho.yohoops.org/'; |
27 | + const API_URL2 = 'http://api.yoho.yohoops.org/'; | ||
28 | + const SERVICE_URL = 'http://service.yoho.yohoops.org/'; | ||
29 | + const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | + const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
31 | + const SERVICE_NOTIFY = 'http://service.yoho.cn/'; | ||
32 | 32 | ||
33 | // 测试环境 */ | 33 | // 测试环境 */ |
34 | - const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' | 34 | + /*const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' |
35 | const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; | 35 | const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; |
36 | const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 36 | const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
37 | - const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/'; | 37 | + const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';*/ |
38 | 38 | ||
39 | /* 预览环境 */ | 39 | /* 预览环境 */ |
40 | // const API_URL = 'http://preapi.yoho.cn/'; | 40 | // const API_URL = 'http://preapi.yoho.cn/'; |
@@ -194,7 +194,7 @@ | @@ -194,7 +194,7 @@ | ||
194 | } | 194 | } |
195 | 195 | ||
196 | location =/product/new/index { | 196 | location =/product/new/index { |
197 | - return 301 http://m.yohobuy.com/product/new; | 197 | + return 301 https://m.yohobuy.com/product/new; |
198 | } | 198 | } |
199 | 199 | ||
200 | 200 | ||
@@ -208,22 +208,22 @@ | @@ -208,22 +208,22 @@ | ||
208 | } | 208 | } |
209 | 209 | ||
210 | location =/help.html { | 210 | location =/help.html { |
211 | - return 301 http://m.yohobuy.com/home/help; | 211 | + return 301 https://m.yohobuy.com/home/help; |
212 | } | 212 | } |
213 | 213 | ||
214 | location ^~ /trends_detail_ { | 214 | location ^~ /trends_detail_ { |
215 | - return 301 http://guang.m.yohobuy.com; | 215 | + return 301 https://guang.m.yohobuy.com; |
216 | } | 216 | } |
217 | 217 | ||
218 | - #location =/about { | ||
219 | - # return 301 https://$host$request_uri; | ||
220 | - # } | 218 | + location =/about { |
219 | + return 301 https://$host$request_uri; | ||
220 | + } | ||
221 | 221 | ||
222 | - #location =/brand/index/about{ | ||
223 | - # return 301 https://$host$request_uri; | ||
224 | - # } | 222 | + location =/brand/index/about{ |
223 | + return 301 https://$host$request_uri; | ||
224 | + } | ||
225 | 225 | ||
226 | # product detail page 301 redirect to item use https | 226 | # product detail page 301 redirect to item use https |
227 | location ^~ /product/pro_ { | 227 | location ^~ /product/pro_ { |
228 | - return 301 http://item.m.yohobuy.com$request_uri; | 228 | + return 301 https://item.m.yohobuy.com$request_uri; |
229 | } | 229 | } |
@@ -28,14 +28,14 @@ server | @@ -28,14 +28,14 @@ server | ||
28 | proxy_set_header Accept-Encoding "gzip"; | 28 | proxy_set_header Accept-Encoding "gzip"; |
29 | } | 29 | } |
30 | 30 | ||
31 | - location =/shopping/pay/aliwapreturn { | ||
32 | - proxy_redirect off; | ||
33 | - proxy_pass http://yohobuy_idc; | ||
34 | - proxy_set_header Host $host; | ||
35 | - proxy_set_header X-Real-IP $remote_addr; | ||
36 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
37 | - proxy_set_header Accept-Encoding "gzip"; | ||
38 | - } | 31 | + # location =/shopping/pay/aliwapreturn { |
32 | + # proxy_redirect off; | ||
33 | + # proxy_pass http://yohobuy_idc; | ||
34 | + # proxy_set_header Host $host; | ||
35 | + # proxy_set_header X-Real-IP $remote_addr; | ||
36 | + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
37 | + # proxy_set_header Accept-Encoding "gzip"; | ||
38 | + # } | ||
39 | 39 | ||
40 | # others http 301 redirect https | 40 | # others http 301 redirect https |
41 | location / { | 41 | location / { |
@@ -76,9 +76,9 @@ server | @@ -76,9 +76,9 @@ server | ||
76 | return 301 http://$host$request_uri; | 76 | return 301 http://$host$request_uri; |
77 | } | 77 | } |
78 | 78 | ||
79 | - location =/shopping/pay/aliwapreturn { | ||
80 | - return 301 http://$host$request_uri; | ||
81 | - } | 79 | + #location =/shopping/pay/aliwapreturn { |
80 | + # return 301 http://$host$request_uri; | ||
81 | + #} | ||
82 | 82 | ||
83 | location / { | 83 | location / { |
84 | proxy_redirect off; | 84 | proxy_redirect off; |
-
Please register or login to post a comment