code review by fei.hong: do add couponxinshili huodong
Showing
2 changed files
with
48 additions
and
9 deletions
@@ -18,17 +18,17 @@ class Yohobuy | @@ -18,17 +18,17 @@ class Yohobuy | ||
18 | { | 18 | { |
19 | /* 正式环境 */ | 19 | /* 正式环境 */ |
20 | // php API | 20 | // php API |
21 | -// const API_URL = 'http://api2.open.yohobuy.com/'; | ||
22 | -// const API_URL2 = 'http://api.open.yohobuy.com/'; | ||
23 | -// const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
24 | -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 21 | + const API_URL = 'http://api2.open.yohobuy.com/'; |
22 | + const API_URL2 = 'http://api.open.yohobuy.com/'; | ||
23 | + const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
24 | + const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
25 | 25 | ||
26 | //java API | 26 | //java API |
27 | - const API_URL = 'http://apih5.yoho.cn/'; | ||
28 | - const API_URL2 = 'http://apih5.yoho.cn/'; | ||
29 | - const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | ||
30 | - const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
31 | - const API_OLD = 'http://api2.open.yohobuy.com/'; | 27 | +// const API_URL = 'http://apih5.yoho.cn/'; |
28 | +// const API_URL2 = 'http://apih5.yoho.cn/'; | ||
29 | +// const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | ||
30 | +// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
31 | +// const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
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/' |
@@ -203,3 +203,42 @@ server | @@ -203,3 +203,42 @@ server | ||
203 | } | 203 | } |
204 | } | 204 | } |
205 | 205 | ||
206 | +server | ||
207 | +{ | ||
208 | + listen 80; | ||
209 | + server_name huodong.yohobuy.com; | ||
210 | + root /Data/PE/yohobuy_PC/yohobuy/huodong.yohobuy.com/public; | ||
211 | + | ||
212 | + location ^~ /cuxiao { | ||
213 | + proxy_redirect off; | ||
214 | + proxy_pass http://yohobuy-pc; | ||
215 | + proxy_set_header Host $host; | ||
216 | + proxy_set_header X-Real-IP $remote_addr; | ||
217 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
218 | + proxy_set_header Accept-Encoding "gzip"; | ||
219 | + } | ||
220 | + | ||
221 | + location / { | ||
222 | + proxy_redirect off; | ||
223 | + proxy_pass http://yohobuy-old-huodong; | ||
224 | + proxy_set_header Host $host; | ||
225 | + proxy_set_header X-Real-IP $remote_addr; | ||
226 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
227 | + proxy_set_header Accept-Encoding "gzip"; | ||
228 | + } | ||
229 | + | ||
230 | + | ||
231 | + location ~* \.(ico|woff|svg|eot|ttf|otf)$ { | ||
232 | + expires 30d; | ||
233 | + } | ||
234 | + location =/crossdomain.xml { | ||
235 | + expires 30d; | ||
236 | + } | ||
237 | + location =/sitemap.xml { | ||
238 | + expires 1d; | ||
239 | + } | ||
240 | + location =/robots.txt { | ||
241 | + expires 1d; | ||
242 | + } | ||
243 | +} | ||
244 | + |
-
Please register or login to post a comment