Authored by hf

code review by fei.hong : do modify login module from http to https

  1 +server
  2 +{
  3 + listen 443 ssl;
  4 + server_name login.m.yohobuy.com;
  5 + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
  6 +
  7 + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.pem;
  8 + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key;
  9 + ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem;
  10 +
  11 + ssl_prefer_server_ciphers on;
  12 + ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  13 + ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:DES-CBC3-SHA";
  14 + ssl_session_tickets off;
  15 + ssl_session_cache shared:SSL:10m;
  16 + access_log /Data/logs/nginx/https_login.m.yohobuy.com.access.log fenxi;
  17 + location = / {
  18 + return 301 http://m.yohobuy.com;
  19 + }
  20 +
  21 + location = /error.html {
  22 + return 301 http://m.yohobuy.com/error.html;
  23 + }
  24 +
  25 + location / {
  26 + proxy_redirect off;
  27 + proxy_pass http://yohobuy;
  28 + proxy_set_header Host $host;
  29 + proxy_set_header X-Real-IP $remote_addr;
  30 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  31 + proxy_set_header Accept-Encoding "gzip";
  32 + }
  33 +
  34 + location ^~ /dist/ {
  35 + proxy_redirect off;
  36 + proxy_set_header X-Real-IP $remote_addr;
  37 + proxy_pass http://cdn.yoho.cn/;
  38 + }
  39 +
  40 + location = /Passport/session/index {
  41 + proxy_redirect off;
  42 + proxy_set_header X-Real-IP $remote_addr;
  43 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  44 + proxy_pass http://mapi.yohobuy.com;
  45 + }
  46 +
  47 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  48 + expires 30d;
  49 + }
  50 + location =/crossdomain.xml {
  51 + expires 30d;
  52 + }
  53 +}
@@ -6,56 +6,85 @@ server @@ -6,56 +6,85 @@ 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.mtesth5.yohobuy.com.log warn; 7 error_log /Data/logs/error.mtesth5.yohobuy.com.log warn;
8 8
9 - root /Data/PE/yohobuy/yohobuy/m.yohobuy.com/public; 9 + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
  10 +
  11 + location = /lb/v1 {
  12 + #cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7
  13 + #acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:352f028bd6ecf28de1c285c573642659
  14 + default_type application/json;
  15 + return 200 '{"code":200,"message":"Config Success","md5":"e4567a9039add2978bf5b49550572cff","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"352f028bd6ecf28de1c285c573642659"}}';
  16 + }
  17 +
  18 + location = /hf/v1 {
  19 + proxy_redirect off;
  20 + proxy_pass http://yohobuy;
  21 + proxy_set_header Host $host;
  22 + proxy_set_header X-Real-IP $remote_addr;
  23 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24 + proxy_set_header Accept-Encoding "gzip";
  25 + }
10 26
11 - # APP相关  
12 location = /appembed { 27 location = /appembed {
13 default_type application/json; 28 default_type application/json;
14 return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}'; 29 return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
15 } 30 }
  31 +
16 location = /help/shareorder.html { 32 location = /help/shareorder.html {
17 - root /Data/PE/yohobuy/assets; 33 + root /Data/PE/yohobuy_H5/assets;
18 expires 7d; 34 expires 7d;
19 } 35 }
20 36
21 - # 错误页面  
22 location = /error.html { 37 location = /error.html {
23 - root /Data/PE/yohobuy/assets; 38 + root /Data/PE/yohobuy_H5/assets;
24 expires 7d; 39 expires 7d;
25 } 40 }
26 41
27 - # 账户相关  
28 - location = /reg.html {  
29 - return 301 https://$server_name$request_uri; 42 + location = /emailback.html {
  43 + proxy_redirect off;
  44 + proxy_pass http://yohobuy;
  45 + proxy_set_header Host $host;
  46 + proxy_set_header X-Real-IP $remote_addr;
  47 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  48 + proxy_set_header Accept-Encoding "gzip";
  49 + }
  50 + location = /phoneback.html {
  51 + proxy_redirect off;
  52 + proxy_pass http://yohobuy;
  53 + proxy_set_header Host $host;
  54 + proxy_set_header X-Real-IP $remote_addr;
  55 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  56 + proxy_set_header Accept-Encoding "gzip";
  57 + }
30 58
31 -# proxy_redirect off;  
32 -# proxy_pass http://yohobuy;  
33 -# proxy_set_header Host $host;  
34 -# proxy_set_header X-Real-IP $remote_addr;  
35 -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
36 -# proxy_set_header Accept-Encoding "gzip"; 59 +
  60 + location = /reg.html {
  61 + proxy_redirect off;
  62 + proxy_pass http://yohobuy;
  63 + proxy_set_header Host $host;
  64 + proxy_set_header X-Real-IP $remote_addr;
  65 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  66 + proxy_set_header Accept-Encoding "gzip";
37 } 67 }
38 - location = /signin.html {  
39 - return 301 https://$server_name$request_uri;  
40 68
41 -# proxy_redirect off;  
42 -# proxy_pass http://yohobuy;  
43 -# proxy_set_header Host $host;  
44 -# proxy_set_header X-Real-IP $remote_addr;  
45 -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
46 -# proxy_set_header Accept-Encoding "gzip"; 69 + location = /signin.html {
  70 + proxy_redirect off;
  71 + proxy_pass http://yohobuy;
  72 + proxy_set_header Host $host;
  73 + proxy_set_header X-Real-IP $remote_addr;
  74 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  75 + proxy_set_header Accept-Encoding "gzip";
47 } 76 }
48 - location = /login.html {  
49 - return 301 https://$server_name$request_uri;  
50 77
51 -# proxy_redirect off;  
52 -# proxy_pass http://yohobuy;  
53 -# proxy_set_header Host $host;  
54 -# proxy_set_header X-Real-IP $remote_addr;  
55 -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
56 -# proxy_set_header Accept-Encoding "gzip"; 78 + location = /login.html {
  79 + proxy_redirect off;
  80 + proxy_pass http://yohobuy;
  81 + proxy_set_header Host $host;
  82 + proxy_set_header X-Real-IP $remote_addr;
  83 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  84 + proxy_set_header Accept-Encoding "gzip";
57 } 85 }
58 - location = /emailback.html { 86 +
  87 + location ^~ /passport/back {
59 proxy_redirect off; 88 proxy_redirect off;
60 proxy_pass http://yohobuy; 89 proxy_pass http://yohobuy;
61 proxy_set_header Host $host; 90 proxy_set_header Host $host;
@@ -63,7 +92,8 @@ server @@ -63,7 +92,8 @@ server
63 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 92 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
64 proxy_set_header Accept-Encoding "gzip"; 93 proxy_set_header Accept-Encoding "gzip";
65 } 94 }
66 - location = /phoneback.html { 95 +
  96 + location ^~ /passport/login {
67 proxy_redirect off; 97 proxy_redirect off;
68 proxy_pass http://yohobuy; 98 proxy_pass http://yohobuy;
69 proxy_set_header Host $host; 99 proxy_set_header Host $host;
@@ -71,7 +101,8 @@ server @@ -71,7 +101,8 @@ server
71 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 101 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
72 proxy_set_header Accept-Encoding "gzip"; 102 proxy_set_header Accept-Encoding "gzip";
73 } 103 }
74 - location ^~ /passport/reg { 104 +
  105 + location = /passport/signout/index {
75 proxy_redirect off; 106 proxy_redirect off;
76 proxy_pass http://yohobuy; 107 proxy_pass http://yohobuy;
77 proxy_set_header Host $host; 108 proxy_set_header Host $host;
@@ -79,7 +110,8 @@ server @@ -79,7 +110,8 @@ server
79 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 110 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
80 proxy_set_header Accept-Encoding "gzip"; 111 proxy_set_header Accept-Encoding "gzip";
81 } 112 }
82 - location ^~ /passport/login { 113 +
  114 + location ^~ /passport/reg {
83 proxy_redirect off; 115 proxy_redirect off;
84 proxy_pass http://yohobuy; 116 proxy_pass http://yohobuy;
85 proxy_set_header Host $host; 117 proxy_set_header Host $host;
@@ -87,7 +119,8 @@ server @@ -87,7 +119,8 @@ server
87 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 119 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
88 proxy_set_header Accept-Encoding "gzip"; 120 proxy_set_header Accept-Encoding "gzip";
89 } 121 }
90 - location ^~ /passport/back { 122 +
  123 + location ^~ /passport/bind {
91 proxy_redirect off; 124 proxy_redirect off;
92 proxy_pass http://yohobuy; 125 proxy_pass http://yohobuy;
93 proxy_set_header Host $host; 126 proxy_set_header Host $host;
@@ -96,7 +129,6 @@ server @@ -96,7 +129,6 @@ server
96 proxy_set_header Accept-Encoding "gzip"; 129 proxy_set_header Accept-Encoding "gzip";
97 } 130 }
98 131
99 - # 频道相关  
100 location = / { 132 location = / {
101 proxy_redirect off; 133 proxy_redirect off;
102 proxy_pass http://yohobuy; 134 proxy_pass http://yohobuy;
@@ -242,6 +274,14 @@ server @@ -242,6 +274,14 @@ server
242 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 274 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
243 proxy_set_header Accept-Encoding "gzip"; 275 proxy_set_header Accept-Encoding "gzip";
244 } 276 }
  277 + location ^~ /product/show_ {
  278 + proxy_redirect off;
  279 + proxy_pass http://yohobuy;
  280 + proxy_set_header Host $host;
  281 + proxy_set_header X-Real-IP $remote_addr;
  282 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  283 + proxy_set_header Accept-Encoding "gzip";
  284 + }
245 location ^~ /product/detail/ { 285 location ^~ /product/detail/ {
246 proxy_redirect off; 286 proxy_redirect off;
247 proxy_pass http://yohobuy; 287 proxy_pass http://yohobuy;
@@ -259,7 +299,6 @@ server @@ -259,7 +299,6 @@ server
259 proxy_set_header Accept-Encoding "gzip"; 299 proxy_set_header Accept-Encoding "gzip";
260 } 300 }
261 301
262 - # 逛相关  
263 location ^~ /guang/ { 302 location ^~ /guang/ {
264 proxy_redirect off; 303 proxy_redirect off;
265 proxy_pass http://yohobuy; 304 proxy_pass http://yohobuy;
@@ -317,7 +356,6 @@ server @@ -317,7 +356,6 @@ server
317 proxy_set_header Accept-Encoding "gzip"; 356 proxy_set_header Accept-Encoding "gzip";
318 } 357 }
319 358
320 - # 搜索相关  
321 location ^~ /search { 359 location ^~ /search {
322 proxy_redirect off; 360 proxy_redirect off;
323 proxy_pass http://yohobuy; 361 proxy_pass http://yohobuy;
@@ -335,7 +373,6 @@ server @@ -335,7 +373,6 @@ server
335 proxy_set_header Accept-Encoding "gzip"; 373 proxy_set_header Accept-Encoding "gzip";
336 } 374 }
337 375
338 - # 个人中心相关  
339 location ^~ /home { 376 location ^~ /home {
340 proxy_redirect off; 377 proxy_redirect off;
341 proxy_pass http://yohobuy; 378 proxy_pass http://yohobuy;
@@ -344,15 +381,33 @@ server @@ -344,15 +381,33 @@ server
344 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 381 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
345 proxy_set_header Accept-Encoding "gzip"; 382 proxy_set_header Accept-Encoding "gzip";
346 } 383 }
  384 + location ^~ /shopping/pay/wechatwapapi {
  385 + proxy_redirect off;
  386 + proxy_pass http://yohobuy;
  387 + proxy_set_header Host $host;
  388 + proxy_set_header X-Real-IP $remote_addr;
  389 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  390 + proxy_set_header Accept-Encoding "gzip";
  391 + }
  392 +
  393 + location ^~ /shopping/pay/index {
  394 + proxy_redirect off;
  395 + proxy_pass http://yohobuy;
  396 + proxy_set_header Host $host;
  397 + proxy_set_header X-Real-IP $remote_addr;
  398 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  399 + proxy_set_header Accept-Encoding "gzip";
  400 + }
  401 +
347 location ^~ /home/message { 402 location ^~ /home/message {
348 proxy_redirect off; 403 proxy_redirect off;
349 - proxy_pass http://61.155.222.163; 404 + proxy_pass http://119.254.81.245;
350 proxy_set_header Host m.yohobuy.com; 405 proxy_set_header Host m.yohobuy.com;
351 proxy_set_header X-Real-IP $remote_addr; 406 proxy_set_header X-Real-IP $remote_addr;
352 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 407 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
353 proxy_set_header Accept-Encoding "gzip"; 408 proxy_set_header Accept-Encoding "gzip";
354 } 409 }
355 - location = /home/orders/detail { 410 + location ^~ /home/lottery {
356 proxy_redirect off; 411 proxy_redirect off;
357 proxy_pass http://119.254.81.245; 412 proxy_pass http://119.254.81.245;
358 proxy_set_header Host m.yohobuy.com; 413 proxy_set_header Host m.yohobuy.com;
@@ -360,7 +415,23 @@ server @@ -360,7 +415,23 @@ server
360 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 415 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
361 proxy_set_header Accept-Encoding "gzip"; 416 proxy_set_header Accept-Encoding "gzip";
362 } 417 }
363 - location = /home/orders/cancel { 418 + location ^~ /home/redenvelopes {
  419 + proxy_redirect off;
  420 + proxy_pass http://119.254.81.245;
  421 + proxy_set_header Host m.yohobuy.com;
  422 + proxy_set_header X-Real-IP $remote_addr;
  423 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  424 + proxy_set_header Accept-Encoding "gzip";
  425 + }
  426 + location ^~ /home/orders/tickets {
  427 + proxy_redirect off;
  428 + proxy_pass http://119.254.81.245;
  429 + proxy_set_header Host m.yohobuy.com;
  430 + proxy_set_header X-Real-IP $remote_addr;
  431 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  432 + proxy_set_header Accept-Encoding "gzip";
  433 + }
  434 + location ^~ /home/currency/ {
364 proxy_redirect off; 435 proxy_redirect off;
365 proxy_pass http://119.254.81.245; 436 proxy_pass http://119.254.81.245;
366 proxy_set_header Host m.yohobuy.com; 437 proxy_set_header Host m.yohobuy.com;
@@ -369,17 +440,16 @@ server @@ -369,17 +440,16 @@ server
369 proxy_set_header Accept-Encoding "gzip"; 440 proxy_set_header Accept-Encoding "gzip";
370 } 441 }
371 442
372 - location ^~ /shopping/pay/wechatwapapi { 443 + location = /home/orders/cancel {
373 proxy_redirect off; 444 proxy_redirect off;
374 - proxy_pass http://yohobuy;  
375 - proxy_set_header Host $host; 445 + proxy_pass http://119.254.81.245;
  446 + proxy_set_header Host m.yohobuy.com;
376 proxy_set_header X-Real-IP $remote_addr; 447 proxy_set_header X-Real-IP $remote_addr;
377 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 448 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
378 proxy_set_header Accept-Encoding "gzip"; 449 proxy_set_header Accept-Encoding "gzip";
379 } 450 }
380 451
381 - ## since 2016/01/23  
382 - location ^~ /shopping/pay/index { 452 + location ^~ /cart {
383 proxy_redirect off; 453 proxy_redirect off;
384 proxy_pass http://yohobuy; 454 proxy_pass http://yohobuy;
385 proxy_set_header Host $host; 455 proxy_set_header Host $host;
@@ -397,12 +467,6 @@ server @@ -397,12 +467,6 @@ server
397 proxy_set_header Accept-Encoding "gzip"; 467 proxy_set_header Accept-Encoding "gzip";
398 } 468 }
399 469
400 - location ^~ /dist/ {  
401 - proxy_redirect off;  
402 - proxy_set_header X-Real-IP $remote_addr;  
403 - proxy_pass http://cdn.yoho.cn/;  
404 - }  
405 -  
406 location ~* \.(ico|woff|svg|eot|ttf|otf)$ { 470 location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
407 expires 30d; 471 expires 30d;
408 } 472 }
@@ -452,7 +516,7 @@ server @@ -452,7 +516,7 @@ server
452 { 516 {
453 listen 80; 517 listen 80;
454 server_name huodong.m.yohobuy.com; 518 server_name huodong.m.yohobuy.com;
455 - root /Data/PE/yohobuy/yohobuy/huodong.m.yohobuy.com/public; 519 + root /Data/PE/yohobuy_H5/yohobuy/huodong.m.yohobuy.com/public;
456 location / { 520 location / {
457 proxy_redirect off; 521 proxy_redirect off;
458 proxy_pass http://yohobuy; 522 proxy_pass http://yohobuy;
@@ -475,62 +539,3 @@ server @@ -475,62 +539,3 @@ server
475 expires 1d; 539 expires 1d;
476 } 540 }
477 } 541 }
478 -  
479 -server  
480 -{  
481 - listen 443 ssl;  
482 - server_name login.m.yohobuy.com;  
483 - root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;  
484 -  
485 - ssl_certificate /home/hf/ssl/server.crt;  
486 - ssl_certificate_key /home/hf/ssl/server.key;  
487 - ssl_dhparam /home/hf/ssl/dhparams.pem;  
488 -  
489 - ssl_prefer_server_ciphers on;  
490 - ssl_protocols TLSv1 TLSv1.1 TLSv1.2;  
491 - ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:DES-CBC3-SHA";  
492 - ssl_session_tickets off;  
493 - ssl_session_cache shared:SSL:10m;  
494 -  
495 -# add_header Strict-Transport-Security "max-age=31536000";  
496 -# add_header X-Frame-Options deny;  
497 -# add_header X-Content-Type-Options nosniff;  
498 -  
499 - #  
500 - location = / {  
501 - return 301 http://m.yohobuy.com;  
502 - }  
503 -  
504 - location = /error.html {  
505 - return 301 http://m.yohobuy.com/error.html;  
506 - }  
507 -  
508 - location / {  
509 - proxy_redirect off;  
510 - proxy_pass http://yohobuy;  
511 - proxy_set_header Host $host;  
512 - proxy_set_header X-Real-IP $remote_addr;  
513 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
514 - proxy_set_header Accept-Encoding "gzip";  
515 - }  
516 -  
517 - location ^~ /dist/ {  
518 - proxy_redirect off;  
519 - proxy_set_header X-Real-IP $remote_addr;  
520 - proxy_pass http://cdn.yoho.cn/;  
521 - }  
522 -  
523 - location = /Passport/session/index {  
524 - proxy_redirect off;  
525 - proxy_set_header X-Real-IP $remote_addr;  
526 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  
527 - proxy_pass http://mapi.yohobuy.com;  
528 - }  
529 -  
530 - location ~* \.(ico|woff|svg|eot|ttf|otf)$ {  
531 - expires 30d;  
532 - }  
533 - location =/crossdomain.xml {  
534 - expires 30d;  
535 - }  
536 -}  
  1 +server
  2 +{
  3 + listen 80;
  4 + server_name m.yohobuy.com *.m.yohobuy.com nginx1.m.yohobuy.com;
  5 +
  6 + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi;
  7 + error_log /Data/logs/error.mtesth5.yohobuy.com.log warn;
  8 +
  9 + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public;
  10 +
  11 + location = /lb/v1 {
  12 + #cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7
  13 + #acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:352f028bd6ecf28de1c285c573642659
  14 + default_type application/json;
  15 + return 200 '{"code":200,"message":"Config Success","md5":"e4567a9039add2978bf5b49550572cff","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"352f028bd6ecf28de1c285c573642659"}}';
  16 + }
  17 +
  18 + location = /hf/v1 {
  19 + proxy_redirect off;
  20 + proxy_pass http://yohobuy;
  21 + proxy_set_header Host $host;
  22 + proxy_set_header X-Real-IP $remote_addr;
  23 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24 + proxy_set_header Accept-Encoding "gzip";
  25 + }
  26 +
  27 + location = /appembed {
  28 + default_type application/json;
  29 + return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
  30 + }
  31 +
  32 + location = /help/shareorder.html {
  33 + root /Data/PE/yohobuy_H5/assets;
  34 + expires 7d;
  35 + }
  36 +
  37 + location = /error.html {
  38 + root /Data/PE/yohobuy_H5/assets;
  39 + expires 7d;
  40 + }
  41 +
  42 + location = /emailback.html {
  43 + return 301 https://login.m.yohobuy.com$request_uri;
  44 + }
  45 + location = /phoneback.html {
  46 + return 301 https://login.m.yohobuy.com$request_uri;
  47 + }
  48 +
  49 +
  50 + location = /reg.html {
  51 + return 301 https://login.m.yohobuy.com$request_uri;
  52 + }
  53 +
  54 + location = /signin.html {
  55 + return 301 https://login.m.yohobuy.com$request_uri;
  56 + }
  57 +
  58 + location = /login.html {
  59 + return 301 https://login.m.yohobuy.com$request_uri;
  60 + }
  61 +
  62 + location ^~ /passport/back {
  63 + return 301 https://login.m.yohobuy.com$request_uri;
  64 + }
  65 +
  66 + location ^~ /passport/login {
  67 + return 301 https://login.m.yohobuy.com$request_uri;
  68 + }
  69 +
  70 + location = /passport/signout/index {
  71 + proxy_redirect off;
  72 + proxy_pass http://yohobuy;
  73 + proxy_set_header Host $host;
  74 + proxy_set_header X-Real-IP $remote_addr;
  75 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  76 + proxy_set_header Accept-Encoding "gzip";
  77 + }
  78 +
  79 + location ^~ /passport/reg {
  80 + return 301 https://login.m.yohobuy.com$request_uri;
  81 + }
  82 +
  83 + location ^~ /passport/bind {
  84 + return 301 https://login.m.yohobuy.com$request_uri;
  85 + }
  86 +
  87 + location = / {
  88 + proxy_redirect off;
  89 + proxy_pass http://yohobuy;
  90 + proxy_set_header Host $host;
  91 + proxy_set_header X-Real-IP $remote_addr;
  92 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  93 + proxy_set_header Accept-Encoding "gzip";
  94 + }
  95 + location = /boys {
  96 + proxy_redirect off;
  97 + proxy_pass http://yohobuy;
  98 + proxy_set_header Host $host;
  99 + proxy_set_header X-Real-IP $remote_addr;
  100 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  101 + proxy_set_header Accept-Encoding "gzip";
  102 + }
  103 + location = /girls {
  104 + proxy_redirect off;
  105 + proxy_pass http://yohobuy;
  106 + proxy_set_header Host $host;
  107 + proxy_set_header X-Real-IP $remote_addr;
  108 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  109 + proxy_set_header Accept-Encoding "gzip";
  110 + }
  111 + location = /kids {
  112 + proxy_redirect off;
  113 + proxy_pass http://yohobuy;
  114 + proxy_set_header Host $host;
  115 + proxy_set_header X-Real-IP $remote_addr;
  116 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  117 + proxy_set_header Accept-Encoding "gzip";
  118 + }
  119 + location = /lifestyle {
  120 + proxy_redirect off;
  121 + proxy_pass http://yohobuy;
  122 + proxy_set_header Host $host;
  123 + proxy_set_header X-Real-IP $remote_addr;
  124 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  125 + proxy_set_header Accept-Encoding "gzip";
  126 + }
  127 + location = /girl {
  128 + proxy_redirect off;
  129 + proxy_pass http://yohobuy;
  130 + proxy_set_header Host $host;
  131 + proxy_set_header X-Real-IP $remote_addr;
  132 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  133 + proxy_set_header Accept-Encoding "gzip";
  134 + }
  135 + location = /boys/bottomBanner {
  136 + proxy_redirect off;
  137 + proxy_pass http://yohobuy;
  138 + proxy_set_header Host $host;
  139 + proxy_set_header X-Real-IP $remote_addr;
  140 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  141 + proxy_set_header Accept-Encoding "gzip";
  142 + }
  143 + location = /girls/bottomBanner {
  144 + proxy_redirect off;
  145 + proxy_pass http://yohobuy;
  146 + proxy_set_header Host $host;
  147 + proxy_set_header X-Real-IP $remote_addr;
  148 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  149 + proxy_set_header Accept-Encoding "gzip";
  150 + }
  151 +
  152 + location = /cate {
  153 + proxy_redirect off;
  154 + proxy_pass http://yohobuy;
  155 + proxy_set_header Host $host;
  156 + proxy_set_header X-Real-IP $remote_addr;
  157 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  158 + proxy_set_header Accept-Encoding "gzip";
  159 + }
  160 + location = /brands {
  161 + proxy_redirect off;
  162 + proxy_pass http://yohobuy;
  163 + proxy_set_header Host $host;
  164 + proxy_set_header X-Real-IP $remote_addr;
  165 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  166 + proxy_set_header Accept-Encoding "gzip";
  167 + }
  168 + location = /sale {
  169 + proxy_redirect off;
  170 + proxy_pass http://yohobuy;
  171 + proxy_set_header Host $host;
  172 + proxy_set_header X-Real-IP $remote_addr;
  173 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  174 + proxy_set_header Accept-Encoding "gzip";
  175 + }
  176 + location = /brands/search {
  177 + proxy_redirect off;
  178 + proxy_pass http://yohobuy;
  179 + proxy_set_header Host $host;
  180 + proxy_set_header X-Real-IP $remote_addr;
  181 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  182 + proxy_set_header Accept-Encoding "gzip";
  183 + }
  184 + location = /product/new {
  185 + proxy_redirect off;
  186 + proxy_pass http://yohobuy;
  187 + proxy_set_header Host $host;
  188 + proxy_set_header X-Real-IP $remote_addr;
  189 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  190 + proxy_set_header Accept-Encoding "gzip";
  191 + }
  192 + location ^~ /product/newsale/ {
  193 + proxy_redirect off;
  194 + proxy_pass http://yohobuy;
  195 + proxy_set_header Host $host;
  196 + proxy_set_header X-Real-IP $remote_addr;
  197 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  198 + proxy_set_header Accept-Encoding "gzip";
  199 + }
  200 + location ^~ /product/opt/ {
  201 + proxy_redirect off;
  202 + proxy_pass http://yohobuy;
  203 + proxy_set_header Host $host;
  204 + proxy_set_header X-Real-IP $remote_addr;
  205 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  206 + proxy_set_header Accept-Encoding "gzip";
  207 + }
  208 + location ^~ /product/recom/ {
  209 + proxy_redirect off;
  210 + proxy_pass http://yohobuy;
  211 + proxy_set_header Host $host;
  212 + proxy_set_header X-Real-IP $remote_addr;
  213 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  214 + proxy_set_header Accept-Encoding "gzip";
  215 + }
  216 + location ^~ /product/pro_ {
  217 + proxy_redirect off;
  218 + proxy_pass http://yohobuy;
  219 + proxy_set_header Host $host;
  220 + proxy_set_header X-Real-IP $remote_addr;
  221 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  222 + proxy_set_header Accept-Encoding "gzip";
  223 + }
  224 + location ^~ /product/intro_ {
  225 + proxy_redirect off;
  226 + proxy_pass http://yohobuy;
  227 + proxy_set_header Host $host;
  228 + proxy_set_header X-Real-IP $remote_addr;
  229 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  230 + proxy_set_header Accept-Encoding "gzip";
  231 + }
  232 + location ^~ /product/show_ {
  233 + proxy_redirect off;
  234 + proxy_pass http://yohobuy;
  235 + proxy_set_header Host $host;
  236 + proxy_set_header X-Real-IP $remote_addr;
  237 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  238 + proxy_set_header Accept-Encoding "gzip";
  239 + }
  240 + location ^~ /product/detail/ {
  241 + proxy_redirect off;
  242 + proxy_pass http://yohobuy;
  243 + proxy_set_header Host $host;
  244 + proxy_set_header X-Real-IP $remote_addr;
  245 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  246 + proxy_set_header Accept-Encoding "gzip";
  247 + }
  248 + location = /hotrank {
  249 + proxy_redirect off;
  250 + proxy_pass http://yohobuy;
  251 + proxy_set_header Host $host;
  252 + proxy_set_header X-Real-IP $remote_addr;
  253 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  254 + proxy_set_header Accept-Encoding "gzip";
  255 + }
  256 +
  257 + location ^~ /guang/ {
  258 + proxy_redirect off;
  259 + proxy_pass http://yohobuy;
  260 + proxy_set_header Host $host;
  261 + proxy_set_header X-Real-IP $remote_addr;
  262 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  263 + proxy_set_header Accept-Encoding "gzip";
  264 + }
  265 + location ^~ /tags/index {
  266 + proxy_redirect off;
  267 + proxy_pass http://yohobuy;
  268 + proxy_set_header Host $host;
  269 + proxy_set_header X-Real-IP $remote_addr;
  270 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  271 + proxy_set_header Accept-Encoding "gzip";
  272 + }
  273 + location ^~ /author/index {
  274 + proxy_redirect off;
  275 + proxy_pass http://yohobuy;
  276 + proxy_set_header Host $host;
  277 + proxy_set_header X-Real-IP $remote_addr;
  278 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  279 + proxy_set_header Accept-Encoding "gzip";
  280 + }
  281 + location ^~ /info/index {
  282 + proxy_redirect off;
  283 + proxy_pass http://yohobuy;
  284 + proxy_set_header Host $host;
  285 + proxy_set_header X-Real-IP $remote_addr;
  286 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  287 + proxy_set_header Accept-Encoding "gzip";
  288 + }
  289 + location ^~ /info/mini {
  290 + proxy_redirect off;
  291 + proxy_pass http://yohobuy;
  292 + proxy_set_header Host $host;
  293 + proxy_set_header X-Real-IP $remote_addr;
  294 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  295 + proxy_set_header Accept-Encoding "gzip";
  296 + }
  297 + location ^~ /plustar {
  298 + proxy_redirect off;
  299 + proxy_pass http://yohobuy;
  300 + proxy_set_header Host $host;
  301 + proxy_set_header X-Real-IP $remote_addr;
  302 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  303 + proxy_set_header Accept-Encoding "gzip";
  304 + }
  305 + location ^~ /rss {
  306 + proxy_redirect off;
  307 + proxy_pass http://yohobuy;
  308 + proxy_set_header Host $host;
  309 + proxy_set_header X-Real-IP $remote_addr;
  310 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  311 + proxy_set_header Accept-Encoding "gzip";
  312 + }
  313 +
  314 + location ^~ /search {
  315 + proxy_redirect off;
  316 + proxy_pass http://yohobuy;
  317 + proxy_set_header Host $host;
  318 + proxy_set_header X-Real-IP $remote_addr;
  319 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  320 + proxy_set_header Accept-Encoding "gzip";
  321 + }
  322 + location ^~ /index/search {
  323 + proxy_redirect off;
  324 + proxy_pass http://yohobuy;
  325 + proxy_set_header Host $host;
  326 + proxy_set_header X-Real-IP $remote_addr;
  327 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  328 + proxy_set_header Accept-Encoding "gzip";
  329 + }
  330 +
  331 + location ^~ /home {
  332 + proxy_redirect off;
  333 + proxy_pass http://yohobuy;
  334 + proxy_set_header Host $host;
  335 + proxy_set_header X-Real-IP $remote_addr;
  336 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  337 + proxy_set_header Accept-Encoding "gzip";
  338 + }
  339 + location ^~ /shopping/pay/wechatwapapi {
  340 + proxy_redirect off;
  341 + proxy_pass http://yohobuy;
  342 + proxy_set_header Host $host;
  343 + proxy_set_header X-Real-IP $remote_addr;
  344 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  345 + proxy_set_header Accept-Encoding "gzip";
  346 + }
  347 +
  348 + location ^~ /shopping/pay/index {
  349 + proxy_redirect off;
  350 + proxy_pass http://yohobuy;
  351 + proxy_set_header Host $host;
  352 + proxy_set_header X-Real-IP $remote_addr;
  353 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  354 + proxy_set_header Accept-Encoding "gzip";
  355 + }
  356 +
  357 + location ^~ /home/message {
  358 + proxy_redirect off;
  359 + proxy_pass http://119.254.81.245;
  360 + proxy_set_header Host m.yohobuy.com;
  361 + proxy_set_header X-Real-IP $remote_addr;
  362 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  363 + proxy_set_header Accept-Encoding "gzip";
  364 + }
  365 + location ^~ /home/lottery {
  366 + proxy_redirect off;
  367 + proxy_pass http://119.254.81.245;
  368 + proxy_set_header Host m.yohobuy.com;
  369 + proxy_set_header X-Real-IP $remote_addr;
  370 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  371 + proxy_set_header Accept-Encoding "gzip";
  372 + }
  373 + location ^~ /home/redenvelopes {
  374 + proxy_redirect off;
  375 + proxy_pass http://119.254.81.245;
  376 + proxy_set_header Host m.yohobuy.com;
  377 + proxy_set_header X-Real-IP $remote_addr;
  378 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  379 + proxy_set_header Accept-Encoding "gzip";
  380 + }
  381 + location ^~ /home/orders/tickets {
  382 + proxy_redirect off;
  383 + proxy_pass http://119.254.81.245;
  384 + proxy_set_header Host m.yohobuy.com;
  385 + proxy_set_header X-Real-IP $remote_addr;
  386 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  387 + proxy_set_header Accept-Encoding "gzip";
  388 + }
  389 + location ^~ /home/currency/ {
  390 + proxy_redirect off;
  391 + proxy_pass http://119.254.81.245;
  392 + proxy_set_header Host m.yohobuy.com;
  393 + proxy_set_header X-Real-IP $remote_addr;
  394 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  395 + proxy_set_header Accept-Encoding "gzip";
  396 + }
  397 +
  398 + location = /home/orders/cancel {
  399 + proxy_redirect off;
  400 + proxy_pass http://119.254.81.245;
  401 + proxy_set_header Host m.yohobuy.com;
  402 + proxy_set_header X-Real-IP $remote_addr;
  403 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  404 + proxy_set_header Accept-Encoding "gzip";
  405 + }
  406 +
  407 + location ^~ /cart {
  408 + proxy_redirect off;
  409 + proxy_pass http://yohobuy;
  410 + proxy_set_header Host $host;
  411 + proxy_set_header X-Real-IP $remote_addr;
  412 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  413 + proxy_set_header Accept-Encoding "gzip";
  414 + }
  415 +
  416 + location ^~ /dist/ {
  417 + #root /Data/PE/yohobuy_H5/static;
  418 + #expires 30d;
  419 + proxy_redirect off;
  420 + proxy_set_header X-Real-IP $remote_addr;
  421 + proxy_pass http://cdn.yoho.cn/;
  422 + }
  423 +
  424 + location / {
  425 + proxy_redirect off;
  426 + proxy_pass http://119.254.81.245;
  427 + proxy_set_header Host m.yohobuy.com;
  428 + proxy_set_header X-Real-IP $remote_addr;
  429 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  430 + proxy_set_header Accept-Encoding "gzip";
  431 + }
  432 +
  433 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  434 + expires 30d;
  435 + }
  436 + location =/crossdomain.xml {
  437 + expires 30d;
  438 + }
  439 + location =/sitemap.xml {
  440 + expires 1d;
  441 + }
  442 + location =/robots.txt {
  443 + expires 1d;
  444 + }
  445 +}
  446 +
  447 +
  448 +server
  449 +{
  450 + listen 80;
  451 + server_name sale.m.yohobuy.com;
  452 +
  453 + location / {
  454 + proxy_redirect off;
  455 + proxy_pass http://119.254.81.245;
  456 + proxy_set_header Host sale.m.yohobuy.com;
  457 + proxy_set_header X-Real-IP $remote_addr;
  458 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  459 + proxy_set_header Accept-Encoding "gzip";
  460 + }
  461 +
  462 +}
  463 +
  464 +server
  465 +{
  466 + listen 80;
  467 + server_name cuxiao.m.yohobuy.com;
  468 + location / {
  469 + proxy_redirect off;
  470 + proxy_pass http://101.201.176.121;
  471 + proxy_set_header Host cuxiao.m.yohobuy.com;
  472 + proxy_set_header X-Real-IP $remote_addr;
  473 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  474 + proxy_set_header Accept-Encoding "gzip";
  475 + }
  476 +}
  477 +
  478 +server
  479 +{
  480 + listen 80;
  481 + server_name huodong.m.yohobuy.com;
  482 + root /Data/PE/yohobuy_H5/yohobuy/huodong.m.yohobuy.com/public;
  483 + location / {
  484 + proxy_redirect off;
  485 + proxy_pass http://yohobuy;
  486 + proxy_set_header Host $host;
  487 + proxy_set_header X-Real-IP $remote_addr;
  488 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  489 + proxy_set_header Accept-Encoding "gzip";
  490 + }
  491 +
  492 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  493 + expires 30d;
  494 + }
  495 + location =/crossdomain.xml {
  496 + expires 30d;
  497 + }
  498 + location =/sitemap.xml {
  499 + expires 1d;
  500 + }
  501 + location =/robots.txt {
  502 + expires 1d;
  503 + }
  504 +}