Showing
23 changed files
with
1692 additions
and
330 deletions
1 | - | ||
2 | - #old idc | ||
3 | - location = /passport/auth/signin { | ||
4 | - proxy_redirect off; | ||
5 | - proxy_pass http://yohobuy-old-www; | ||
6 | - proxy_set_header Host $host; | ||
7 | - proxy_set_header X-Real-IP $remote_addr; | ||
8 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
9 | - proxy_set_header Accept-Encoding "gzip"; | ||
10 | - } | ||
11 | - | ||
12 | - location = /live/index { | ||
13 | - proxy_redirect off; | ||
14 | - proxy_pass http://yohobuy-old-www; | ||
15 | - proxy_set_header Host $host; | ||
16 | - proxy_set_header X-Real-IP $remote_addr; | ||
17 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
18 | - proxy_set_header Accept-Encoding "gzip"; | ||
19 | - } | ||
20 | - | ||
21 | - location = /yohoshow { | ||
22 | - # proxy_redirect off; | ||
23 | - # proxy_pass http://yohobuy-old-www; | ||
24 | - # proxy_set_header Host $host; | ||
25 | - # proxy_set_header X-Real-IP $remote_addr; | ||
26 | - # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | - # proxy_set_header Accept-Encoding "gzip"; | ||
28 | - return 301 http://$host; | ||
29 | - } | ||
30 | - | ||
31 | - location =/product/specials { | ||
32 | - return 301 http://$host; | ||
33 | - } | ||
34 | - | ||
35 | - location =/search/thanks { | ||
36 | - return 301 http://$host; | ||
37 | - } | ||
38 | - | ||
39 | - location =/search/vip { | ||
40 | - return 301 http://$host; | ||
41 | - } | ||
42 | - | ||
43 | - location =/search/promotion { | ||
44 | - return 301 http://$host; | ||
45 | - } | ||
46 | - | ||
47 | - location =/outlet { | ||
48 | - return 301 http://$host; | ||
49 | - } | ||
50 | - | ||
51 | - location = /search { | ||
52 | - # return 301 http://search.yohobuy.com$request_uri; | ||
53 | - rewrite /search http://search.yohobuy.com permanent; | ||
54 | - } | ||
55 | - | ||
56 | - location ^~ /logout_ { | ||
57 | - rewrite ^/logout_(.+).html http://www.yohobuy.com/logout.html?token=$1; | ||
58 | - } | ||
59 | - | ||
60 | - location ^~ /product/pro_ { | ||
61 | - return 301 http://item.yohobuy.com$request_uri; | ||
62 | - } | ||
63 | - | ||
64 | - location = /sale { | ||
65 | - rewrite /sale http://www.yohobuy.com/product/sale/ permanent; | ||
66 | - } | ||
67 | - | ||
68 | - #location ^~ /brands/ { | ||
69 | - # rewrite /brands/$ http://www.yohobuy.com/brands permanent; | ||
70 | - #} | ||
71 | - location ^~ /discount { | ||
72 | - rewrite /discount http://search.yohobuy.com permanent; | ||
73 | - } | ||
74 | - | ||
75 | - location ^~ /gallery { | ||
76 | - rewrite /gallery http://www.yohobuy.com permanent; | ||
77 | - } | ||
78 | - | ||
79 | - location ^~ /lookbook { | ||
80 | - rewrite /lookbook http://guang.yohobuy.com permanent; | ||
81 | - } | ||
82 | - | ||
83 | - location ^~ /trends { | ||
84 | - rewrite /trends http://guang.yohobuy.com permanent; | ||
85 | - } | ||
86 | - | ||
87 | - location ^~ /promotion { | ||
88 | - rewrite /promotion http://list.yohobuy.com/sale permanent; | ||
89 | - } | ||
90 | - | ||
91 | - location /product/new { | ||
92 | - rewrite ^/product/new(.*)$ http://list.yohobuy.com/new$1 permanent; | ||
93 | - } | ||
94 | - | ||
95 | - location ^~ /product/exhibit { | ||
96 | - rewrite /product/exhibit http://www.yohobuy.com permanent; | ||
97 | - } | ||
98 | - | ||
99 | - |
1 | - location =/favicon.ico { | ||
2 | - expires 30d; | ||
3 | - } | ||
4 | - location =/crossdomain.xml { | ||
5 | - expires 30d; | ||
6 | - } | ||
7 | - location =/robots.txt { | ||
8 | - expires 1d; | ||
9 | - } | ||
10 | - | ||
11 | - ##百度站长的校验文件, 百度站长账号feng322169 密码yoho9646 | ||
12 | - location = /baidu_verify_Mrj1Pt3L86.html { | ||
13 | - root /Data/PE/yohobuy_pc/assets; | ||
14 | - expires 7d; | ||
15 | - } |
1 | + location ~* /special_(\d+)_(.*)\.html$ { | ||
2 | + proxy_redirect off; | ||
3 | + proxy_pass http://yohobuy-old-www; | ||
4 | + proxy_set_header Host $host; | ||
5 | + proxy_set_header X-Real-IP $remote_addr; | ||
6 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
7 | + proxy_set_header Accept-Encoding "gzip"; | ||
8 | + } | ||
9 | + | ||
10 | + location = /index.html { | ||
11 | + return 301 http://www.yohobuy.com/; | ||
12 | + } | ||
13 | + | ||
14 | + location ^~ /resource/getbanner { | ||
15 | + rewrite /resource/getbanner(.*)$ http://www.yohobuy.com/common/getbanner$1 permanent; | ||
16 | + } |
1 | ssl on; | 1 | ssl on; |
2 | ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; | 2 | ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; |
3 | - # ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | ||
4 | 3 | ||
5 | ssl_prefer_server_ciphers on; | 4 | ssl_prefer_server_ciphers on; |
6 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | 5 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
1 | 1 | ||
2 | - ## old idc | ||
3 | - location = /erp2goods { | 2 | + #old idc |
3 | + location ^~ /erp2goods { | ||
4 | proxy_redirect off; | 4 | proxy_redirect off; |
5 | proxy_pass http://yohobuy-old-www; | 5 | proxy_pass http://yohobuy-old-www; |
6 | proxy_set_header Host $host; | 6 | proxy_set_header Host $host; |
7 | proxy_set_header X-Real-IP $remote_addr; | 7 | proxy_set_header X-Real-IP $remote_addr; |
8 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 8 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
9 | proxy_set_header Accept-Encoding "gzip"; | 9 | proxy_set_header Accept-Encoding "gzip"; |
10 | - } | 10 | + } |
11 | 11 | ||
12 | location = /passport/auth/signin { | 12 | location = /passport/auth/signin { |
13 | proxy_redirect off; | 13 | proxy_redirect off; |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | proxy_set_header X-Real-IP $remote_addr; | 16 | proxy_set_header X-Real-IP $remote_addr; |
17 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 17 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
18 | proxy_set_header Accept-Encoding "gzip"; | 18 | proxy_set_header Accept-Encoding "gzip"; |
19 | - } | 19 | + } |
20 | 20 | ||
21 | location = /live/index { | 21 | location = /live/index { |
22 | proxy_redirect off; | 22 | proxy_redirect off; |
@@ -25,20 +25,15 @@ | @@ -25,20 +25,15 @@ | ||
25 | proxy_set_header X-Real-IP $remote_addr; | 25 | proxy_set_header X-Real-IP $remote_addr; |
26 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 26 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
27 | proxy_set_header Accept-Encoding "gzip"; | 27 | proxy_set_header Accept-Encoding "gzip"; |
28 | - } | 28 | + } |
29 | 29 | ||
30 | location = /yohoshow { | 30 | location = /yohoshow { |
31 | - proxy_redirect off; | ||
32 | - proxy_pass http://yohobuy-old-www; | ||
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"; | ||
37 | - } | 31 | + return 301 http://$host; |
32 | + } | ||
38 | 33 | ||
39 | - location =/product/specials { | ||
40 | - return 301 http://$host; | ||
41 | - } | 34 | + location =/product/specials { |
35 | + return 301 http://$host; | ||
36 | + } | ||
42 | 37 | ||
43 | location =/search/thanks { | 38 | location =/search/thanks { |
44 | return 301 http://$host; | 39 | return 301 http://$host; |
@@ -57,7 +52,8 @@ | @@ -57,7 +52,8 @@ | ||
57 | } | 52 | } |
58 | 53 | ||
59 | location = /search { | 54 | location = /search { |
60 | - return 301 http://search.yohobuy.com$request_uri; | 55 | + # return 301 http://search.yohobuy.com$request_uri; |
56 | + rewrite /search http://search.yohobuy.com permanent; | ||
61 | } | 57 | } |
62 | 58 | ||
63 | location ^~ /logout_ { | 59 | location ^~ /logout_ { |
@@ -65,12 +61,21 @@ | @@ -65,12 +61,21 @@ | ||
65 | } | 61 | } |
66 | 62 | ||
67 | location ^~ /product/pro_ { | 63 | location ^~ /product/pro_ { |
68 | - return 301 http://item.yohobuy.com$request_uri; | 64 | + proxy_redirect off; |
65 | + proxy_pass http://yohobuy-pc; | ||
66 | + proxy_set_header Host $host; | ||
67 | + proxy_set_header X-Real-IP $remote_addr; | ||
68 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
69 | + proxy_set_header Accept-Encoding "gzip"; | ||
69 | } | 70 | } |
70 | 71 | ||
71 | - location ^~ /brands/ { | ||
72 | - rewrite /brands/$ http://www.yohobuy.com/brands permanent; | 72 | + location = /sale { |
73 | + rewrite /sale http://www.yohobuy.com/product/sale/ permanent; | ||
73 | } | 74 | } |
75 | + | ||
76 | + #location ^~ /brands/ { | ||
77 | + # rewrite /brands/$ http://www.yohobuy.com/brands permanent; | ||
78 | + #} | ||
74 | location ^~ /discount { | 79 | location ^~ /discount { |
75 | rewrite /discount http://search.yohobuy.com permanent; | 80 | rewrite /discount http://search.yohobuy.com permanent; |
76 | } | 81 | } |
@@ -97,4 +102,6 @@ | @@ -97,4 +102,6 @@ | ||
97 | 102 | ||
98 | location ^~ /product/exhibit { | 103 | location ^~ /product/exhibit { |
99 | rewrite /product/exhibit http://www.yohobuy.com permanent; | 104 | rewrite /product/exhibit http://www.yohobuy.com permanent; |
100 | - } | ||
105 | + } | ||
106 | + | ||
107 | + |
1 | -#SEO optimization | ||
2 | - if ($host ~* ^www\.(.*)\.yohobuy\.com) { | ||
3 | - set $sub_name $1; | ||
4 | - return 301 $scheme://$sub_name.yohobuy.com$request_uri; | 1 | + location = / { |
2 | + proxy_redirect off; | ||
3 | + proxy_pass http://yohobuy-node; | ||
4 | + proxy_set_header Host $host; | ||
5 | + proxy_set_header X-Real-IP $remote_addr; | ||
6 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
7 | + proxy_set_header Accept-Encoding "gzip"; | ||
5 | } | 8 | } |
6 | 9 | ||
7 | - location ^~ /yohounion/ { | 10 | + location = /woman { |
8 | proxy_redirect off; | 11 | proxy_redirect off; |
9 | - proxy_pass http://unionapi/union/; | 12 | + proxy_pass http://yohobuy-node; |
10 | proxy_set_header Host $host; | 13 | proxy_set_header Host $host; |
11 | - proxy_set_header X-Real-IP $http_x_forwarded_for; | 14 | + proxy_set_header X-Real-IP $remote_addr; |
12 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 15 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
13 | proxy_set_header Accept-Encoding "gzip"; | 16 | proxy_set_header Accept-Encoding "gzip"; |
14 | - } | 17 | + } |
18 | + | ||
19 | + location = /girls { | ||
20 | + return 301 /woman; | ||
21 | + } | ||
15 | 22 | ||
16 | - ##pc_alipay_notice | ||
17 | - location = /pay/notice/alimobilenoticemini { | 23 | + location = /kids { |
18 | proxy_redirect off; | 24 | proxy_redirect off; |
19 | - proxy_pass http://yoho_service/payment/alipay_notify; | ||
20 | - proxy_set_header Host service.yoho.cn; | 25 | + proxy_pass http://yohobuy-node; |
26 | + proxy_set_header Host $host; | ||
21 | proxy_set_header X-Real-IP $remote_addr; | 27 | proxy_set_header X-Real-IP $remote_addr; |
22 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 28 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
29 | + proxy_set_header Accept-Encoding "gzip"; | ||
23 | } | 30 | } |
24 | 31 | ||
32 | + location = /lifestyle { | ||
33 | + proxy_redirect off; | ||
34 | + proxy_pass http://yohobuy-node; | ||
35 | + proxy_set_header Host $host; | ||
36 | + proxy_set_header X-Real-IP $remote_addr; | ||
37 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
38 | + proxy_set_header Accept-Encoding "gzip"; | ||
39 | + } | ||
25 | 40 | ||
26 | - location ^~ /brands { | 41 | + location ^~ /product/sale/ { |
27 | proxy_redirect off; | 42 | proxy_redirect off; |
28 | - proxy_pass http://yohobuy-pc; | 43 | + proxy_pass http://yohobuy-node; |
29 | proxy_set_header Host $host; | 44 | proxy_set_header Host $host; |
30 | proxy_set_header X-Real-IP $remote_addr; | 45 | proxy_set_header X-Real-IP $remote_addr; |
31 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 46 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
32 | proxy_set_header Accept-Encoding "gzip"; | 47 | proxy_set_header Accept-Encoding "gzip"; |
33 | } | 48 | } |
34 | 49 | ||
35 | - location ^~ /common/passport { | 50 | + location ^~ /product/outlets/ { |
36 | proxy_redirect off; | 51 | proxy_redirect off; |
37 | - proxy_pass http://yohobuy-pc; | 52 | + proxy_pass http://yohobuy-node; |
38 | proxy_set_header Host $host; | 53 | proxy_set_header Host $host; |
39 | proxy_set_header X-Real-IP $remote_addr; | 54 | proxy_set_header X-Real-IP $remote_addr; |
40 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 55 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
41 | proxy_set_header Accept-Encoding "gzip"; | 56 | proxy_set_header Accept-Encoding "gzip"; |
42 | } | 57 | } |
43 | 58 | ||
44 | - location ^~ /Passport/session/index { | ||
45 | - proxy_redirect off; | ||
46 | - proxy_pass http://yohobuy-old-www; | ||
47 | - proxy_set_header Host $host; | ||
48 | - proxy_set_header X-Real-IP $remote_addr; | ||
49 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
50 | - proxy_set_header Accept-Encoding "gzip"; | ||
51 | - } | 59 | + location = /passport/autosign/wechat { |
60 | + proxy_redirect off; | ||
61 | + proxy_pass http://yohobuy-node; | ||
62 | + proxy_set_header Host $host; | ||
63 | + proxy_set_header X-Real-IP $remote_addr; | ||
64 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
65 | + proxy_set_header Accept-Encoding "gzip"; | ||
66 | + } | ||
67 | + | ||
68 | + location ^~ /passport/login/wechat/ { | ||
69 | + proxy_redirect off; | ||
70 | + proxy_pass http://yohobuy-node; | ||
71 | + proxy_set_header Host $host; | ||
72 | + proxy_set_header X-Real-IP $remote_addr; | ||
73 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
74 | + proxy_set_header Accept-Encoding "gzip"; | ||
75 | + } | ||
76 | + | ||
77 | + location = /guide { | ||
78 | + proxy_redirect off; | ||
79 | + proxy_pass http://yohobuy-node; | ||
80 | + proxy_set_header Host $host; | ||
81 | + proxy_set_header X-Real-IP $remote_addr; | ||
82 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
83 | + proxy_set_header Accept-Encoding "gzip"; | ||
84 | + } | ||
52 | 85 | ||
53 | - location ^~ /home/address/area { | ||
54 | - proxy_redirect off; | ||
55 | - proxy_pass http://yohobuy-pc; | ||
56 | - proxy_set_header Host $host; | ||
57 | - proxy_set_header X-Real-IP $remote_addr; | ||
58 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
59 | - proxy_set_header Accept-Encoding "gzip"; | ||
60 | - } | ||
86 | + location = /getbrandFloorDataAjax { | ||
87 | + proxy_redirect off; | ||
88 | + proxy_pass http://yohobuy-node; | ||
89 | + proxy_set_header Host $host; | ||
90 | + proxy_set_header X-Real-IP $remote_addr; | ||
91 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
92 | + proxy_set_header Accept-Encoding "gzip"; | ||
93 | + } |
1 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
2 | + set $httpsFlag 1; | ||
3 | + | ||
4 | + location = / { | ||
5 | + if ($httpsFlag = 0) { | ||
6 | + return 301 http://$host$request_uri; | ||
7 | + } | ||
8 | + | ||
9 | + proxy_redirect off; | ||
10 | + proxy_pass http://yohobuy-node; | ||
11 | + proxy_set_header Host $host; | ||
12 | + proxy_set_header X-Real-IP $remote_addr; | ||
13 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
14 | + proxy_set_header Accept-Encoding "gzip"; | ||
15 | + } | ||
16 | + | ||
17 | + location = /woman { | ||
18 | + if ($httpsFlag = 0) { | ||
19 | + return 301 http://$host$request_uri; | ||
20 | + } | ||
21 | + | ||
22 | + proxy_redirect off; | ||
23 | + proxy_pass http://yohobuy-node; | ||
24 | + proxy_set_header Host $host; | ||
25 | + proxy_set_header X-Real-IP $remote_addr; | ||
26 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | + proxy_set_header Accept-Encoding "gzip"; | ||
28 | + } | ||
29 | + | ||
30 | + location = /girls { | ||
31 | + return 301 /woman; | ||
32 | + } | ||
33 | + | ||
34 | + location = /kids { | ||
35 | + if ($httpsFlag = 0) { | ||
36 | + return 301 http://$host$request_uri; | ||
37 | + } | ||
38 | + | ||
39 | + proxy_redirect off; | ||
40 | + proxy_pass http://yohobuy-node; | ||
41 | + proxy_set_header Host $host; | ||
42 | + proxy_set_header X-Real-IP $remote_addr; | ||
43 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
44 | + proxy_set_header Accept-Encoding "gzip"; | ||
45 | + } | ||
46 | + | ||
47 | + location = /lifestyle { | ||
48 | + if ($httpsFlag = 0) { | ||
49 | + return 301 http://$host$request_uri; | ||
50 | + } | ||
51 | + | ||
52 | + proxy_redirect off; | ||
53 | + proxy_pass http://yohobuy-node; | ||
54 | + proxy_set_header Host $host; | ||
55 | + proxy_set_header X-Real-IP $remote_addr; | ||
56 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
57 | + proxy_set_header Accept-Encoding "gzip"; | ||
58 | + } | ||
59 | + | ||
60 | + location ^~ /product/sale/ { | ||
61 | + if ($httpsFlag = 0) { | ||
62 | + return 301 http://$host$request_uri; | ||
63 | + } | ||
64 | + | ||
65 | + proxy_redirect off; | ||
66 | + proxy_pass http://yohobuy-node; | ||
67 | + proxy_set_header Host $host; | ||
68 | + proxy_set_header X-Real-IP $remote_addr; | ||
69 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
70 | + proxy_set_header Accept-Encoding "gzip"; | ||
71 | + } | ||
72 | + | ||
73 | + location ^~ /product/outlets/ { | ||
74 | + if ($httpsFlag = 0) { | ||
75 | + return 301 http://$host$request_uri; | ||
76 | + } | ||
77 | + | ||
78 | + proxy_redirect off; | ||
79 | + proxy_pass http://yohobuy-node; | ||
80 | + proxy_set_header Host $host; | ||
81 | + proxy_set_header X-Real-IP $remote_addr; | ||
82 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
83 | + proxy_set_header Accept-Encoding "gzip"; | ||
84 | + } | ||
85 | + | ||
86 | + location = /passport/autosign/wechat { | ||
87 | + if ($httpsFlag = 0) { | ||
88 | + return 301 http://$host$request_uri; | ||
89 | + } | ||
90 | + | ||
91 | + proxy_redirect off; | ||
92 | + proxy_pass http://yohobuy-node; | ||
93 | + proxy_set_header Host $host; | ||
94 | + proxy_set_header X-Real-IP $remote_addr; | ||
95 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
96 | + proxy_set_header Accept-Encoding "gzip"; | ||
97 | + } | ||
98 | + | ||
99 | + location ^~ /passport/login/wechat/ { | ||
100 | + if ($httpsFlag = 0) { | ||
101 | + return 301 http://$host$request_uri; | ||
102 | + } | ||
103 | + | ||
104 | + proxy_redirect off; | ||
105 | + proxy_pass http://yohobuy-node; | ||
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 | + | ||
112 | + location = /guide { | ||
113 | + if ($httpsFlag = 0) { | ||
114 | + return 301 http://$host$request_uri; | ||
115 | + } | ||
116 | + | ||
117 | + proxy_redirect off; | ||
118 | + proxy_pass http://yohobuy-node; | ||
119 | + proxy_set_header Host $host; | ||
120 | + proxy_set_header X-Real-IP $remote_addr; | ||
121 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
122 | + proxy_set_header Accept-Encoding "gzip"; | ||
123 | + } | ||
124 | + | ||
125 | + location = /getbrandFloorDataAjax { | ||
126 | + if ($httpsFlag = 0) { | ||
127 | + return 301 http://$host$request_uri; | ||
128 | + } | ||
129 | + | ||
130 | + proxy_redirect off; | ||
131 | + proxy_pass http://yohobuy-node; | ||
132 | + proxy_set_header Host $host; | ||
133 | + proxy_set_header X-Real-IP $remote_addr; | ||
134 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
135 | + proxy_set_header Accept-Encoding "gzip"; | ||
136 | + } |
1 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
2 | + set $httpsFlag 1; | ||
3 | + | ||
4 | + location = / { | ||
5 | + if ($httpsFlag = 1) { | ||
6 | + return 301 https://$host$request_uri; | ||
7 | + } | ||
8 | + | ||
9 | + proxy_redirect off; | ||
10 | + proxy_pass http://yohobuy-node; | ||
11 | + proxy_set_header Host $host; | ||
12 | + proxy_set_header X-Real-IP $remote_addr; | ||
13 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
14 | + proxy_set_header Accept-Encoding "gzip"; | ||
15 | + } | ||
16 | + | ||
17 | + location = /woman { | ||
18 | + if ($httpsFlag = 1) { | ||
19 | + return 301 https://$host$request_uri; | ||
20 | + } | ||
21 | + | ||
22 | + proxy_redirect off; | ||
23 | + proxy_pass http://yohobuy-node; | ||
24 | + proxy_set_header Host $host; | ||
25 | + proxy_set_header X-Real-IP $remote_addr; | ||
26 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | + proxy_set_header Accept-Encoding "gzip"; | ||
28 | + } | ||
29 | + | ||
30 | + location = /girls { | ||
31 | + return 301 /woman; | ||
32 | + } | ||
33 | + | ||
34 | + location = /kids { | ||
35 | + if ($httpsFlag = 1) { | ||
36 | + return 301 https://$host$request_uri; | ||
37 | + } | ||
38 | + | ||
39 | + proxy_redirect off; | ||
40 | + proxy_pass http://yohobuy-node; | ||
41 | + proxy_set_header Host $host; | ||
42 | + proxy_set_header X-Real-IP $remote_addr; | ||
43 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
44 | + proxy_set_header Accept-Encoding "gzip"; | ||
45 | + } | ||
46 | + | ||
47 | + location = /lifestyle { | ||
48 | + if ($httpsFlag = 1) { | ||
49 | + return 301 https://$host$request_uri; | ||
50 | + } | ||
51 | + | ||
52 | + proxy_redirect off; | ||
53 | + proxy_pass http://yohobuy-node; | ||
54 | + proxy_set_header Host $host; | ||
55 | + proxy_set_header X-Real-IP $remote_addr; | ||
56 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
57 | + proxy_set_header Accept-Encoding "gzip"; | ||
58 | + } | ||
59 | + | ||
60 | + location ^~ /product/sale/ { | ||
61 | + if ($httpsFlag = 1) { | ||
62 | + return 301 https://$host$request_uri; | ||
63 | + } | ||
64 | + | ||
65 | + proxy_redirect off; | ||
66 | + proxy_pass http://yohobuy-node; | ||
67 | + proxy_set_header Host $host; | ||
68 | + proxy_set_header X-Real-IP $remote_addr; | ||
69 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
70 | + proxy_set_header Accept-Encoding "gzip"; | ||
71 | + } | ||
72 | + | ||
73 | + location ^~ /product/outlets/ { | ||
74 | + if ($httpsFlag = 1) { | ||
75 | + return 301 https://$host$request_uri; | ||
76 | + } | ||
77 | + | ||
78 | + proxy_redirect off; | ||
79 | + proxy_pass http://yohobuy-node; | ||
80 | + proxy_set_header Host $host; | ||
81 | + proxy_set_header X-Real-IP $remote_addr; | ||
82 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
83 | + proxy_set_header Accept-Encoding "gzip"; | ||
84 | + } | ||
85 | + | ||
86 | + location = /passport/autosign/wechat { | ||
87 | + if ($httpsFlag = 1) { | ||
88 | + return 301 https://$host$request_uri; | ||
89 | + } | ||
90 | + | ||
91 | + proxy_redirect off; | ||
92 | + proxy_pass http://yohobuy-node; | ||
93 | + proxy_set_header Host $host; | ||
94 | + proxy_set_header X-Real-IP $remote_addr; | ||
95 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
96 | + proxy_set_header Accept-Encoding "gzip"; | ||
97 | + } | ||
98 | + | ||
99 | + location ^~ /passport/login/wechat/ { | ||
100 | + if ($httpsFlag = 1) { | ||
101 | + return 301 https://$host$request_uri; | ||
102 | + } | ||
103 | + | ||
104 | + proxy_redirect off; | ||
105 | + proxy_pass http://yohobuy-node; | ||
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 | + | ||
112 | + location = /guide { | ||
113 | + if ($httpsFlag = 1) { | ||
114 | + return 301 https://$host$request_uri; | ||
115 | + } | ||
116 | + | ||
117 | + proxy_redirect off; | ||
118 | + proxy_pass http://yohobuy-node; | ||
119 | + proxy_set_header Host $host; | ||
120 | + proxy_set_header X-Real-IP $remote_addr; | ||
121 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
122 | + proxy_set_header Accept-Encoding "gzip"; | ||
123 | + } | ||
124 | + | ||
125 | + location = /getbrandFloorDataAjax { | ||
126 | + if ($httpsFlag = 1) { | ||
127 | + return 301 https://$host$request_uri; | ||
128 | + } | ||
129 | + | ||
130 | + proxy_redirect off; | ||
131 | + proxy_pass http://yohobuy-node; | ||
132 | + proxy_set_header Host $host; | ||
133 | + proxy_set_header X-Real-IP $remote_addr; | ||
134 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
135 | + proxy_set_header Accept-Encoding "gzip"; | ||
136 | + } |
1 | - #SEO optimization | 1 | +#SEO optimization |
2 | if ($host ~* ^www\.(.*)\.yohobuy\.com) { | 2 | if ($host ~* ^www\.(.*)\.yohobuy\.com) { |
3 | set $sub_name $1; | 3 | set $sub_name $1; |
4 | return 301 $scheme://$sub_name.yohobuy.com$request_uri; | 4 | return 301 $scheme://$sub_name.yohobuy.com$request_uri; |
@@ -20,4 +20,41 @@ | @@ -20,4 +20,41 @@ | ||
20 | proxy_set_header Host service.yoho.cn; | 20 | proxy_set_header Host service.yoho.cn; |
21 | proxy_set_header X-Real-IP $remote_addr; | 21 | proxy_set_header X-Real-IP $remote_addr; |
22 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 22 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
23 | - } | ||
23 | + } | ||
24 | + | ||
25 | + | ||
26 | + location ^~ /brands { | ||
27 | + proxy_redirect off; | ||
28 | + proxy_pass http://yohobuy-pc; | ||
29 | + proxy_set_header Host $host; | ||
30 | + proxy_set_header X-Real-IP $remote_addr; | ||
31 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
32 | + proxy_set_header Accept-Encoding "gzip"; | ||
33 | + } | ||
34 | + | ||
35 | + location ^~ /common/passport { | ||
36 | + proxy_redirect off; | ||
37 | + proxy_pass http://yohobuy-pc; | ||
38 | + proxy_set_header Host $host; | ||
39 | + proxy_set_header X-Real-IP $remote_addr; | ||
40 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
41 | + proxy_set_header Accept-Encoding "gzip"; | ||
42 | + } | ||
43 | + | ||
44 | + location ^~ /Passport/session/index { | ||
45 | + proxy_redirect off; | ||
46 | + proxy_pass http://yohobuy-old-www; | ||
47 | + proxy_set_header Host $host; | ||
48 | + proxy_set_header X-Real-IP $remote_addr; | ||
49 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
50 | + proxy_set_header Accept-Encoding "gzip"; | ||
51 | + } | ||
52 | + | ||
53 | + location ^~ /home/address/area { | ||
54 | + proxy_redirect off; | ||
55 | + proxy_pass http://yohobuy-pc; | ||
56 | + proxy_set_header Host $host; | ||
57 | + proxy_set_header X-Real-IP $remote_addr; | ||
58 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
59 | + proxy_set_header Accept-Encoding "gzip"; | ||
60 | + } |
1 | +#app api | ||
2 | + location =/appembed { | ||
3 | + default_type application/json; | ||
4 | + return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}'; | ||
5 | + } | ||
6 | + | ||
7 | + location =/lb/v1 { | ||
8 | + #cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7 | ||
9 | + #acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:kai: 352f028bd6ecf28de1c285c573642659 guang:7ea6bdf07376a928c5d4677789c45463 | ||
10 | + #srp 62a165d59f8daf42e2df5f3c5aed8a2f krp:17d7a40f313560d4d9a1189a91e45ab9 | ||
11 | + #boc 94931e4a3036baeecdacb975e10a8ec6 bcc:dc9262a469f6f315f74c087a7b3a7f35 | ||
12 | + default_type application/json; | ||
13 | + return 200 '{"code":200,"message":"Config Success","md5":"e4567a9039add2978bf5b49550572cff","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"352f028bd6ecf28de1c285c573642659","dl":"2a90dfa0f37b92aaebf369e9a4d38ba4","rp":"17d7a40f313560d4d9a1189a91e45ab9","dli":"5b2d8b4b242e067616c6cd98851b2306"}}'; | ||
14 | + } | ||
15 | + | ||
16 | + location =/hf/v1 { | ||
17 | + proxy_redirect off; | ||
18 | + proxy_pass http://yohobuy; | ||
19 | + proxy_set_header Host $host; | ||
20 | + proxy_set_header X-Real-IP $remote_addr; | ||
21 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
22 | + proxy_set_header Accept-Encoding "gzip"; | ||
23 | + } | ||
24 | + | ||
25 | + location =/rn/v1 { | ||
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 | + } |
1 | +ssl on; | ||
2 | + ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; | ||
3 | + | ||
4 | + ssl_prefer_server_ciphers on; | ||
5 | + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
6 | + 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"; | ||
7 | + ssl_session_tickets off; | ||
8 | + ssl_session_cache shared:SSL:10m; |
1 | +#idc old proxy | ||
2 | + location =/invite.html { | ||
3 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
4 | + proxy_redirect off; | ||
5 | + proxy_pass http://yohobuy_idc; | ||
6 | + proxy_set_header Host m.yohobuy.com; | ||
7 | + proxy_set_header X-Real-IP $remote_addr; | ||
8 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
9 | + proxy_set_header Accept-Encoding "gzip"; | ||
10 | + } | ||
11 | + location =/app.html { | ||
12 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
13 | + proxy_redirect off; | ||
14 | + proxy_pass http://yohobuy_idc; | ||
15 | + proxy_set_header Host m.yohobuy.com; | ||
16 | + proxy_set_header X-Real-IP $remote_addr; | ||
17 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
18 | + proxy_set_header Accept-Encoding "gzip"; | ||
19 | + } | ||
20 | + location =/yohood.html { | ||
21 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
22 | + proxy_redirect off; | ||
23 | + proxy_pass http://yohobuy_idc; | ||
24 | + proxy_set_header Host m.yohobuy.com; | ||
25 | + proxy_set_header X-Real-IP $remote_addr; | ||
26 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | + proxy_set_header Accept-Encoding "gzip"; | ||
28 | + } | ||
29 | + location ^~ /home/lottery { | ||
30 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
31 | + proxy_redirect off; | ||
32 | + proxy_pass http://yohobuy_idc; | ||
33 | + proxy_set_header Host m.yohobuy.com; | ||
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"; | ||
37 | + } | ||
38 | + location ^~ /home/redenvelopes { | ||
39 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
40 | + proxy_redirect off; | ||
41 | + proxy_pass http://yohobuy_idc; | ||
42 | + proxy_set_header Host m.yohobuy.com; | ||
43 | + proxy_set_header X-Real-IP $remote_addr; | ||
44 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
45 | + proxy_set_header Accept-Encoding "gzip"; | ||
46 | + } | ||
47 | + location ^~ /home/orders/tickets { | ||
48 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
49 | + proxy_redirect off; | ||
50 | + proxy_pass http://yohobuy_idc; | ||
51 | + proxy_set_header Host m.yohobuy.com; | ||
52 | + proxy_set_header X-Real-IP $remote_addr; | ||
53 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
54 | + proxy_set_header Accept-Encoding "gzip"; | ||
55 | + } | ||
56 | + location ^~ /home/currency/ { | ||
57 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
58 | + proxy_redirect off; | ||
59 | + proxy_pass http://yohobuy_idc; | ||
60 | + proxy_set_header Host m.yohobuy.com; | ||
61 | + proxy_set_header X-Real-IP $remote_addr; | ||
62 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
63 | + proxy_set_header Accept-Encoding "gzip"; | ||
64 | + } | ||
65 | + location = /home/orders/cancel { | ||
66 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
67 | + proxy_redirect off; | ||
68 | + proxy_pass http://yohobuy_idc; | ||
69 | + proxy_set_header Host m.yohobuy.com; | ||
70 | + proxy_set_header X-Real-IP $remote_addr; | ||
71 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
72 | + proxy_set_header Accept-Encoding "gzip"; | ||
73 | + } | ||
74 | + location ^~ /wechat { | ||
75 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
76 | + proxy_redirect off; | ||
77 | + proxy_pass http://yohobuy_idc; | ||
78 | + proxy_set_header Host m.yohobuy.com; | ||
79 | + proxy_set_header X-Real-IP $remote_addr; | ||
80 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
81 | + proxy_set_header Accept-Encoding "gzip"; | ||
82 | + } | ||
83 | + location ^~ /huodong { | ||
84 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
85 | + proxy_redirect off; | ||
86 | + proxy_pass http://yohobuy_idc; | ||
87 | + proxy_set_header Host m.yohobuy.com; | ||
88 | + proxy_set_header X-Real-IP $remote_addr; | ||
89 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
90 | + proxy_set_header Accept-Encoding "gzip"; | ||
91 | + } | ||
92 | + location ^~ /download { | ||
93 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
94 | + proxy_redirect off; | ||
95 | + proxy_pass http://yohobuy_idc; | ||
96 | + proxy_set_header Host m.yohobuy.com; | ||
97 | + proxy_set_header X-Real-IP $remote_addr; | ||
98 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
99 | + proxy_set_header Accept-Encoding "gzip"; | ||
100 | + } | ||
101 | + location ^~ /events { | ||
102 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
103 | + proxy_redirect off; | ||
104 | + proxy_pass http://yohobuy_idc; | ||
105 | + proxy_set_header Host m.yohobuy.com; | ||
106 | + proxy_set_header X-Real-IP $remote_addr; | ||
107 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
108 | + proxy_set_header Accept-Encoding "gzip"; | ||
109 | + } | ||
110 | + location ^~ /appactive { | ||
111 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
112 | + proxy_redirect off; | ||
113 | + proxy_pass http://yohobuy_idc; | ||
114 | + proxy_set_header Host m.yohobuy.com; | ||
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 ^~ /cart/success { | ||
120 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
121 | + proxy_redirect off; | ||
122 | + proxy_pass http://yohobuy_idc; | ||
123 | + proxy_set_header Host m.yohobuy.com; | ||
124 | + proxy_set_header X-Real-IP $remote_addr; | ||
125 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
126 | + proxy_set_header Accept-Encoding "gzip"; | ||
127 | + } | ||
128 | + location ^~ /shopping/success { | ||
129 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
130 | + proxy_redirect off; | ||
131 | + proxy_pass http://yohobuy_idc; | ||
132 | + proxy_set_header Host m.yohobuy.com; | ||
133 | + proxy_set_header X-Real-IP $remote_addr; | ||
134 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
135 | + proxy_set_header Accept-Encoding "gzip"; | ||
136 | + } | ||
137 | + location ^~ /shopping/pay/aliwap { | ||
138 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
139 | + proxy_redirect off; | ||
140 | + proxy_pass http://yohobuy_idc; | ||
141 | + proxy_set_header Host m.yohobuy.com; | ||
142 | + proxy_set_header X-Real-IP $remote_addr; | ||
143 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
144 | + proxy_set_header Accept-Encoding "gzip"; | ||
145 | + } | ||
146 | + location = /shopping/pay/wechatwap { | ||
147 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
148 | + proxy_redirect off; | ||
149 | + proxy_pass http://yohobuy_idc; | ||
150 | + proxy_set_header Host m.yohobuy.com; | ||
151 | + proxy_set_header X-Real-IP $remote_addr; | ||
152 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
153 | + proxy_set_header Accept-Encoding "gzip"; | ||
154 | + } | ||
155 | + location ^~ /passport/syncsignin { | ||
156 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
157 | + proxy_redirect off; | ||
158 | + proxy_pass http://yohobuy_idc; | ||
159 | + proxy_set_header Host m.yohobuy.com; | ||
160 | + proxy_set_header X-Real-IP $remote_addr; | ||
161 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
162 | + proxy_set_header Accept-Encoding "gzip"; | ||
163 | + } | ||
164 | + | ||
165 | + location = /product/index/search { | ||
166 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
167 | + proxy_redirect off; | ||
168 | + proxy_pass http://yohobuy_idc; | ||
169 | + proxy_set_header Host m.yohobuy.com; | ||
170 | + proxy_set_header X-Real-IP $remote_addr; | ||
171 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
172 | + proxy_set_header Accept-Encoding "gzip"; | ||
173 | + } | ||
174 | + | ||
175 | + location ^~ /share_ { | ||
176 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
177 | + proxy_redirect off; | ||
178 | + proxy_pass http://yohobuy_idc; | ||
179 | + proxy_set_header Host m.yohobuy.com; | ||
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 | + | ||
185 | + # idc old proxy for login to write memcache and cookie (if need?) | ||
186 | + location ^~ /Passport/session { | ||
187 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
188 | + proxy_redirect off; | ||
189 | + proxy_pass http://yohobuy_idc; | ||
190 | + proxy_set_header Host mapi.yohobuy.com; | ||
191 | + proxy_set_header X-Real-IP $remote_addr; | ||
192 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
193 | + proxy_set_header Accept-Encoding "gzip"; | ||
194 | + } | ||
195 | + | ||
196 | + location =/product/new/index { | ||
197 | + return 301 http://m.yohobuy.com/product/new; | ||
198 | + } | ||
199 | + | ||
200 | + | ||
201 | + #old idc | ||
202 | + location =/download/appsem { | ||
203 | + return 301 http://cdn.yoho.cn/huodong-web/appsem/appsem.html; | ||
204 | + } | ||
205 | + | ||
206 | + location =/app { | ||
207 | + return 301 http://www.yoho.cn; | ||
208 | + } | ||
209 | + | ||
210 | + location =/help.html { | ||
211 | + return 301 http://m.yohobuy.com/home/help; | ||
212 | + } | ||
213 | + | ||
214 | + location ^~ /trends_detail_ { | ||
215 | + return 301 http://guang.m.yohobuy.com; | ||
216 | + } | ||
217 | + | ||
218 | + #location =/about { | ||
219 | + # return 301 http://$host$request_uri; | ||
220 | + # } | ||
221 | + | ||
222 | + #location =/brand/index/about{ | ||
223 | + # return 301 http://$host$request_uri; | ||
224 | + # } | ||
225 | + | ||
226 | + location ^~ /product/pro_ { | ||
227 | + return 301 http://item.m.yohobuy.com$request_uri; | ||
228 | + } | ||
229 | + |
1 | + | ||
2 | +location ^~ /passport/login/wechat/ { | ||
3 | + proxy_redirect off; | ||
4 | + proxy_pass http://yohobuywap-node; | ||
5 | + proxy_set_header Host $host; | ||
6 | + proxy_set_header X-Real-IP $remote_addr; | ||
7 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
8 | + proxy_set_header Accept-Encoding "gzip"; | ||
9 | + } | ||
10 | + | ||
11 | +location ^~ /activity { | ||
12 | + proxy_redirect off; | ||
13 | + proxy_pass http://yohobuywap-node; | ||
14 | + proxy_set_header Host $host; | ||
15 | + proxy_set_header X-Real-IP $remote_addr; | ||
16 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
17 | + proxy_set_header Accept-Encoding "gzip"; | ||
18 | + } | ||
19 | + | ||
20 | +#channel page | ||
21 | +location = / { | ||
22 | + proxy_redirect off; | ||
23 | + proxy_pass http://yohobuywap-node; | ||
24 | + proxy_set_header Host $host; | ||
25 | + proxy_set_header X-Real-IP $remote_addr; | ||
26 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | + proxy_set_header Accept-Encoding "gzip"; | ||
28 | +} | ||
29 | + | ||
30 | +location = /boys { | ||
31 | + proxy_redirect off; | ||
32 | + proxy_pass http://yohobuywap-node; | ||
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"; | ||
37 | +} | ||
38 | + | ||
39 | +location = /girls { | ||
40 | + proxy_redirect off; | ||
41 | + proxy_pass http://yohobuywap-node; | ||
42 | + proxy_set_header Host $host; | ||
43 | + proxy_set_header X-Real-IP $remote_addr; | ||
44 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
45 | + proxy_set_header Accept-Encoding "gzip"; | ||
46 | +} | ||
47 | + | ||
48 | +location = /girl { | ||
49 | + return 301 /girls; | ||
50 | +} | ||
51 | + | ||
52 | +location = /kids { | ||
53 | + proxy_redirect off; | ||
54 | + proxy_pass http://yohobuywap-node; | ||
55 | + proxy_set_header Host $host; | ||
56 | + proxy_set_header X-Real-IP $remote_addr; | ||
57 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
58 | + proxy_set_header Accept-Encoding "gzip"; | ||
59 | +} | ||
60 | + | ||
61 | +location = /lifestyle { | ||
62 | + proxy_redirect off; | ||
63 | + proxy_pass http://yohobuywap-node; | ||
64 | + proxy_set_header Host $host; | ||
65 | + proxy_set_header X-Real-IP $remote_addr; | ||
66 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
67 | + proxy_set_header Accept-Encoding "gzip"; | ||
68 | +} | ||
69 | + | ||
70 | +location ^~ /channel { | ||
71 | + proxy_redirect off; | ||
72 | + proxy_pass http://yohobuywap-node; | ||
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 ^~ /product/sale/ { | ||
80 | + proxy_redirect off; | ||
81 | + proxy_pass http://yohobuywap-node; | ||
82 | + proxy_set_header Host $host; | ||
83 | + proxy_set_header X-Real-IP $remote_addr; | ||
84 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
85 | + proxy_set_header Accept-Encoding "gzip"; | ||
86 | +} | ||
87 | + | ||
88 | +location ^~ /guang/star/ { | ||
89 | + proxy_redirect off; | ||
90 | + proxy_pass http://yohobuywap-node; | ||
91 | + proxy_set_header Host $host; | ||
92 | + proxy_set_header X-Real-IP $remote_addr; | ||
93 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
94 | + proxy_set_header Accept-Encoding "gzip"; | ||
95 | +} | ||
96 | + | ||
97 | + | ||
98 | +location ^~ /product/outlet/ { | ||
99 | + proxy_redirect off; | ||
100 | + proxy_pass http://yohobuywap-node; | ||
101 | + proxy_set_header Host $host; | ||
102 | + proxy_set_header X-Real-IP $remote_addr; | ||
103 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
104 | + proxy_set_header Accept-Encoding "gzip"; | ||
105 | +} | ||
106 | + |
1 | 1 | ||
2 | -location ^~ /product/sale/ { | ||
3 | - proxy_redirect off; | ||
4 | - proxy_pass http://yohobuy-node; | ||
5 | - proxy_set_header Host $host; | ||
6 | - proxy_set_header X-Real-IP $remote_addr; | ||
7 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
8 | - proxy_set_header Accept-Encoding "gzip"; | ||
9 | -} | 2 | + # wechat pay |
3 | + location ^~ /shopping/pay/aliwapreturn { | ||
4 | + proxy_redirect off; | ||
5 | + proxy_pass http://yohobuy; | ||
6 | + proxy_set_header Host m.yohobuy.com; | ||
7 | + proxy_set_header X-Real-IP $remote_addr; | ||
8 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
9 | + proxy_set_header Accept-Encoding "gzip"; | ||
10 | + } | ||
11 | + | ||
12 | + location ^~ /home/orders/pay { | ||
13 | + proxy_redirect off; | ||
14 | + proxy_pass http://yohobuy; | ||
15 | + proxy_set_header Host $host; | ||
16 | + proxy_set_header X-Real-IP $remote_addr; | ||
17 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
18 | + proxy_set_header Accept-Encoding "gzip"; | ||
19 | + } | ||
10 | 20 | ||
11 | -location ^~ /product/outlets/ { | ||
12 | - proxy_redirect off; | ||
13 | - proxy_pass http://yohobuy-node; | ||
14 | - proxy_set_header Host $host; | ||
15 | - proxy_set_header X-Real-IP $remote_addr; | ||
16 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
17 | - proxy_set_header Accept-Encoding "gzip"; | ||
18 | -} | 21 | + location ^~ /shopping/pay/wechatwapapi { |
22 | + proxy_redirect off; | ||
23 | + proxy_pass http://yohobuy; | ||
24 | + proxy_set_header Host $host; | ||
25 | + proxy_set_header X-Real-IP $remote_addr; | ||
26 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
27 | + proxy_set_header Accept-Encoding "gzip"; | ||
28 | + } | ||
19 | 29 | ||
20 | -location = /passport/autosign/wechat { | ||
21 | - proxy_redirect off; | ||
22 | - proxy_pass http://yohobuy-node; | ||
23 | - proxy_set_header Host $host; | ||
24 | - proxy_set_header X-Real-IP $remote_addr; | ||
25 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
26 | - proxy_set_header Accept-Encoding "gzip"; | ||
27 | -} | 30 | + location ^~ /coupon { |
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"; | ||
37 | + } | ||
28 | 38 | ||
29 | -location ^~ /passport/login/wechat/ { | ||
30 | - proxy_redirect off; | ||
31 | - proxy_pass http://yohobuy-node; | ||
32 | - proxy_set_header Host $host; | ||
33 | - proxy_set_header X-Real-IP $remote_addr; | ||
34 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
35 | - proxy_set_header Accept-Encoding "gzip"; | ||
36 | -} | ||
37 | - | ||
38 | -# location ^~ /sale/ { | ||
39 | -# proxy_redirect off; | ||
40 | -# proxy_pass http://yohobuy-node; | ||
41 | -# proxy_set_header Host $host; | ||
42 | -# proxy_set_header X-Real-IP $remote_addr; | ||
43 | -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
44 | -# proxy_set_header Accept-Encoding "gzip"; | ||
45 | -# } | ||
46 | - | ||
47 | - | ||
48 | -#location = /product/index/getNodeContent { | ||
49 | -# proxy_redirect off; | ||
50 | -# proxy_pass http://yohobuy-node; | ||
51 | -# proxy_set_header Host $host; | ||
52 | -# proxy_set_header X-Real-IP $remote_addr; | ||
53 | -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
54 | -# proxy_set_header Accept-Encoding "gzip"; | ||
55 | -# } | 39 | + location = /coupon/index { |
40 | + return 301 /activity/coupon?$query_string; | ||
41 | + } |
1 | + #static file | ||
2 | + location =/favicon.ico { | ||
3 | + expires 7d; | ||
4 | + } | ||
5 | + location =/crossdomain.xml { | ||
6 | + expires 7d; | ||
7 | + } | ||
8 | + location =/sitemap.xml { | ||
9 | + expires 1d; | ||
10 | + } | ||
11 | + location =/robots.txt { | ||
12 | + expires 1d; | ||
13 | + } | ||
14 | + | ||
15 | + location = /error.html { | ||
16 | + root /Data/PE/yohobuy_H5/assets; | ||
17 | + expires 7d; | ||
18 | + } | ||
19 | + # app show help page | ||
20 | + location =/help/shareorder.html { | ||
21 | + root /Data/PE/yohobuy_H5/assets; | ||
22 | + expires 7d; | ||
23 | + } | ||
24 | + | ||
25 | + ## baidu feng322169 yoho9646 | ||
26 | + location = /baidu_verify_bXX90VTyvs.html { | ||
27 | + root /Data/PE/yohobuy_H5/assets; | ||
28 | + expires 7d; | ||
29 | + } |
1 | server | 1 | server |
2 | { | 2 | { |
3 | listen 80; | 3 | listen 80; |
4 | - server_name *.yohobuy.com; | ||
5 | - root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | 4 | + server_name www.yohobuy.com *.yohobuy.com; |
5 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; | ||
6 | 6 | ||
7 | - error_log /Data/logs/error.pc.yohobuy.com.log warn; | 7 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
8 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
8 | 9 | ||
9 | # static file | 10 | # static file |
10 | include vhosts/location/yohobuypc_static.conf; | 11 | include vhosts/location/yohobuypc_static.conf; |
@@ -15,31 +16,100 @@ server | @@ -15,31 +16,100 @@ server | ||
15 | # php | 16 | # php |
16 | include vhosts/location/yohobuypc_php.conf; | 17 | include vhosts/location/yohobuypc_php.conf; |
17 | 18 | ||
19 | + # node | ||
20 | + include vhosts/location/yohobuypc_node.conf; | ||
21 | + | ||
22 | + location ~* /special_(\d+)_(.*)\.html$ { | ||
23 | + proxy_redirect off; | ||
24 | + proxy_pass http://yohobuy-old-www; | ||
25 | + proxy_set_header Host $host; | ||
26 | + proxy_set_header X-Real-IP $remote_addr; | ||
27 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
28 | + proxy_set_header Accept-Encoding "gzip"; | ||
29 | + } | ||
30 | + | ||
31 | + location ~* /special/(\d+)_(.*)\.html$ { | ||
32 | + proxy_redirect off; | ||
33 | + proxy_pass http://yohobuy-node; | ||
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 | + | ||
40 | + location ^~ /home/returns { | ||
41 | + proxy_redirect off; | ||
42 | + proxy_pass http://yohobuy-pc; | ||
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"; | ||
47 | + } | ||
48 | + | ||
18 | location = /index.html { | 49 | location = /index.html { |
19 | - return 301 http://www.yohobuy.com/; | 50 | + return 301 http://www.yohobuy.com/; |
51 | + } | ||
52 | + | ||
53 | + location ^~ /resource/getbanner { | ||
54 | + rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent; | ||
20 | } | 55 | } |
21 | 56 | ||
22 | - location ^~ /resource/getbanner { | ||
23 | - rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent; | ||
24 | - } | 57 | + #https flag, 1 means HTTPS, 0 means HTTP |
58 | + set $httpsFlag 0; | ||
59 | + | ||
60 | + location / { | ||
61 | + if ($httpsFlag = 1) { | ||
62 | + return 301 https://$host$request_uri; | ||
63 | + } | ||
64 | + | ||
65 | + proxy_redirect off; | ||
66 | + proxy_pass http://yohobuy-pc; | ||
67 | + proxy_set_header Host $host; | ||
68 | + proxy_set_header X-Real-IP $remote_addr; | ||
69 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
70 | + proxy_set_header Accept-Encoding "gzip"; | ||
71 | + } | ||
72 | + | ||
73 | +} | ||
74 | + | ||
75 | +server | ||
76 | +{ | ||
77 | + listen 80; | ||
78 | + listen 443 ssl; | ||
79 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | ||
80 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | ||
81 | + | ||
82 | + server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com new.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com; | ||
83 | + | ||
84 | + | ||
85 | + # https key | ||
86 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
25 | 87 | ||
26 | - # others http 301 redirect https | ||
27 | location / { | 88 | location / { |
28 | - return 301 https://$host$request_uri; | 89 | + proxy_redirect off; |
90 | + proxy_pass http://yohobuy-pc; | ||
91 | + proxy_set_header Host $host; | ||
92 | + proxy_set_header X-Real-IP $remote_addr; | ||
93 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
94 | + proxy_set_header Accept-Encoding "gzip"; | ||
29 | } | 95 | } |
30 | } | 96 | } |
31 | 97 | ||
32 | server | 98 | server |
33 | { | 99 | { |
34 | listen 443; | 100 | listen 443; |
35 | - server_name *.yohobuy.com; | 101 | + server_name www.yohobuy.com *.yohobuy.com; |
36 | 102 | ||
37 | - ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
38 | - ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | 103 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; |
104 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | ||
39 | 105 | ||
40 | - root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | 106 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; |
41 | 107 | ||
42 | - error_log /Data/logs/error.pc.yohobuy.com.log warn; | 108 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
109 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
110 | + | ||
111 | + # https key | ||
112 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
43 | 113 | ||
44 | # static file | 114 | # static file |
45 | include vhosts/location/yohobuypc_static.conf; | 115 | include vhosts/location/yohobuypc_static.conf; |
@@ -50,21 +120,42 @@ server | @@ -50,21 +120,42 @@ server | ||
50 | # php | 120 | # php |
51 | include vhosts/location/yohobuypc_php.conf; | 121 | include vhosts/location/yohobuypc_php.conf; |
52 | 122 | ||
123 | + # node | ||
124 | + include vhosts/location/yohobuypc_node.conf; | ||
125 | + | ||
126 | + location ~* /special_(\d+)_(.*)\.html$ { | ||
127 | + return 301 http://$host$request_uri; | ||
128 | + } | ||
129 | + | ||
130 | + location ~* /special/(\d+)_(.*)\.html$ { | ||
131 | + return 301 http://$host$request_uri; | ||
132 | + } | ||
133 | + | ||
134 | + location ^~ /home/returns { | ||
135 | + return 301 http://$host$request_uri; | ||
136 | + } | ||
137 | + | ||
53 | location = /index.html { | 138 | location = /index.html { |
54 | - return 301 https://www.yohobuy.com/; | 139 | + return 301 http://www.yohobuy.com/; |
55 | } | 140 | } |
56 | 141 | ||
57 | - location ^~ /resource/getbanner { | ||
58 | - rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent; | ||
59 | - } | 142 | + location ^~ /resource/getbanner { |
143 | + rewrite /resource/getbanner(.*)$ https://www.yohobuy.com/common/getbanner$1 permanent; | ||
144 | + } | ||
60 | 145 | ||
61 | - location / { | ||
62 | - proxy_redirect off; | ||
63 | - proxy_pass http://yohobuy_pc; | ||
64 | - proxy_set_header Host $host; | ||
65 | - proxy_set_header X-Real-IP $remote_addr; | ||
66 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
67 | - proxy_set_header Accept-Encoding "gzip"; | 146 | + #https flag, 1 means HTTPS, 0 means HTTP |
147 | + set $httpsFlag 0; | ||
148 | + | ||
149 | + location / { | ||
150 | + if ($httpsFlag = 0) { | ||
151 | + return 301 http://$host$request_uri; | ||
152 | + } | ||
153 | + proxy_redirect off; | ||
154 | + proxy_pass http://yohobuy-pc; | ||
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"; | ||
68 | } | 159 | } |
69 | } | 160 | } |
70 | 161 | ||
@@ -73,6 +164,7 @@ server | @@ -73,6 +164,7 @@ server | ||
73 | listen 80; | 164 | listen 80; |
74 | server_name admin.yohobuy.com union.yohobuy.com; | 165 | server_name admin.yohobuy.com union.yohobuy.com; |
75 | 166 | ||
167 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
76 | error_log /Data/logs/error_pc.yohobuy.com.log warn; | 168 | error_log /Data/logs/error_pc.yohobuy.com.log warn; |
77 | 169 | ||
78 | location / { | 170 | location / { |
@@ -90,7 +182,10 @@ server | @@ -90,7 +182,10 @@ server | ||
90 | { | 182 | { |
91 | listen 80; | 183 | listen 80; |
92 | server_name huodong.yohobuy.com; | 184 | server_name huodong.yohobuy.com; |
93 | - root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | 185 | + root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public; |
186 | + | ||
187 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
188 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
94 | 189 | ||
95 | location ^~ /cuxiao { | 190 | location ^~ /cuxiao { |
96 | proxy_redirect off; | 191 | proxy_redirect off; |
@@ -100,7 +195,7 @@ server | @@ -100,7 +195,7 @@ server | ||
100 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | 195 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
101 | proxy_set_header Accept-Encoding "gzip"; | 196 | proxy_set_header Accept-Encoding "gzip"; |
102 | } | 197 | } |
103 | - | 198 | + |
104 | location / { | 199 | location / { |
105 | proxy_redirect off; | 200 | proxy_redirect off; |
106 | proxy_pass http://yohobuy-old-huodong; | 201 | proxy_pass http://yohobuy-old-huodong; |
@@ -119,10 +214,16 @@ server | @@ -119,10 +214,16 @@ server | ||
119 | listen 443; | 214 | listen 443; |
120 | server_name huodong.yohobuy.com; | 215 | server_name huodong.yohobuy.com; |
121 | 216 | ||
122 | - ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
123 | - ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | 217 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; |
218 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | ||
219 | + | ||
220 | + root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public; | ||
221 | + | ||
222 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
223 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
124 | 224 | ||
125 | - root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | 225 | + # https key |
226 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
126 | 227 | ||
127 | location ^~ /cuxiao { | 228 | location ^~ /cuxiao { |
128 | proxy_redirect off; | 229 | proxy_redirect off; |
@@ -156,6 +257,46 @@ server | @@ -156,6 +257,46 @@ server | ||
156 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | 257 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; |
157 | 258 | ||
158 | location = / { | 259 | location = / { |
159 | - return 301 https://www.yohobuy.com/; | 260 | + return 301 http://www.yohobuy.com/; |
160 | } | 261 | } |
161 | } | 262 | } |
263 | + | ||
264 | + | ||
265 | +server | ||
266 | +{ | ||
267 | + listen 443; | ||
268 | + server_name analytics.m.yohobuy.com; | ||
269 | + | ||
270 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem; | ||
271 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key; | ||
272 | + | ||
273 | + # https key | ||
274 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
275 | + | ||
276 | + location / { | ||
277 | + proxy_redirect off; | ||
278 | + proxy_pass http://yohobuy_analytics; | ||
279 | + proxy_set_header Host $host; | ||
280 | + proxy_set_header X-Real-IP $remote_addr; | ||
281 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
282 | + proxy_set_header Accept-Encoding "gzip"; | ||
283 | + proxy_set_header http_referer $http_referer; | ||
284 | + } | ||
285 | +} | ||
286 | + | ||
287 | + server | ||
288 | +{ | ||
289 | + listen 80; | ||
290 | + server_name analytics.m.yohobuy.com; | ||
291 | + | ||
292 | + location / { | ||
293 | + proxy_redirect off; | ||
294 | + proxy_pass http://yohobuy_analytics; | ||
295 | + proxy_set_header Host $host; | ||
296 | + proxy_set_header X-Real-IP $remote_addr; | ||
297 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
298 | + proxy_set_header Accept-Encoding "gzip"; | ||
299 | + proxy_set_header http_referer $http_referer; | ||
300 | + } | ||
301 | + | ||
302 | +} |
@@ -2,7 +2,7 @@ server | @@ -2,7 +2,7 @@ server | ||
2 | { | 2 | { |
3 | listen 80; | 3 | listen 80; |
4 | server_name www.yohobuy.com *.yohobuy.com; | 4 | server_name www.yohobuy.com *.yohobuy.com; |
5 | - root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | 5 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; |
6 | 6 | ||
7 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | 7 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
8 | error_log /Data/logs/error_pc.yohobuy.com.log warn; | 8 | error_log /Data/logs/error_pc.yohobuy.com.log warn; |
@@ -17,7 +17,7 @@ server | @@ -17,7 +17,7 @@ server | ||
17 | include vhosts/location/yohobuypc_php.conf; | 17 | include vhosts/location/yohobuypc_php.conf; |
18 | 18 | ||
19 | # node | 19 | # node |
20 | - include vhosts/location/yohobuypc_node.conf; | 20 | + include vhosts/location/yohobuypc_node80.conf; |
21 | 21 | ||
22 | location ~* /special_(\d+)_(.*)\.html$ { | 22 | location ~* /special_(\d+)_(.*)\.html$ { |
23 | proxy_redirect off; | 23 | proxy_redirect off; |
@@ -28,24 +28,6 @@ server | @@ -28,24 +28,6 @@ server | ||
28 | proxy_set_header Accept-Encoding "gzip"; | 28 | proxy_set_header Accept-Encoding "gzip"; |
29 | } | 29 | } |
30 | 30 | ||
31 | - location ~* /special/(\d+)_(.*)\.html$ { | ||
32 | - proxy_redirect off; | ||
33 | - proxy_pass http://yohobuy-node; | ||
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 | - | ||
40 | - location ^~ /home/returns { | ||
41 | - proxy_redirect off; | ||
42 | - proxy_pass http://yohobuy-pc; | ||
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"; | ||
47 | - } | ||
48 | - | ||
49 | location = /index.html { | 31 | location = /index.html { |
50 | return 301 http://www.yohobuy.com/; | 32 | return 301 http://www.yohobuy.com/; |
51 | } | 33 | } |
@@ -75,23 +57,85 @@ server | @@ -75,23 +57,85 @@ server | ||
75 | server | 57 | server |
76 | { | 58 | { |
77 | listen 80; | 59 | listen 80; |
78 | - listen 443 ssl; | 60 | + |
61 | + server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com; | ||
62 | + | ||
63 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; | ||
64 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
65 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
66 | + | ||
67 | + # static file | ||
68 | + include vhosts/location/yohobuypc_static.conf; | ||
69 | + | ||
70 | + # old idc | ||
71 | + include vhosts/location/yohobuypc_idc.conf; | ||
72 | + | ||
73 | + # php | ||
74 | + include vhosts/location/yohobuypc_php.conf; | ||
75 | + | ||
76 | + | ||
77 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
78 | + set $httpsFlag 1; | ||
79 | + | ||
80 | + location / { | ||
81 | + if ($httpsFlag = 1) { | ||
82 | + return 301 https://$host$request_uri; | ||
83 | + } | ||
84 | + | ||
85 | + proxy_redirect off; | ||
86 | + proxy_pass http://yohobuy-pc; | ||
87 | + proxy_set_header Host $host; | ||
88 | + proxy_set_header X-Real-IP $remote_addr; | ||
89 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
90 | + proxy_set_header Accept-Encoding "gzip"; | ||
91 | + } | ||
92 | +} | ||
93 | + | ||
94 | +server | ||
95 | +{ | ||
96 | + listen 443 ; | ||
97 | + | ||
98 | + server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com search.yohobuy.com guang.yohobuy | ||
99 | +.com shop.yohobuy.com; | ||
100 | + | ||
79 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | 101 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; |
80 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | 102 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; |
81 | 103 | ||
82 | - server_name list.yohobuy.com item.yohobuy.com sale.yohobuy.com new.yohobuy.com search.yohobuy.com guang.yohobuy.com shop.yohobuy.com; | 104 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; |
105 | + access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
106 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
83 | 107 | ||
84 | - # https key | ||
85 | - include vhosts/location/yohobuypc_httpskey.conf; | 108 | + # https key |
109 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
110 | + | ||
111 | + # static file | ||
112 | + include vhosts/location/yohobuypc_static.conf; | ||
113 | + | ||
114 | + # old idc | ||
115 | + include vhosts/location/yohobuypc_idc.conf; | ||
116 | + | ||
117 | + # php | ||
118 | + include vhosts/location/yohobuypc_php.conf; | ||
119 | + | ||
120 | + # node | ||
121 | + #include vhosts/location/yohobuypc_node443.conf; | ||
122 | + | ||
123 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
124 | + set $httpsFlag 1; | ||
86 | 125 | ||
87 | location / { | 126 | location / { |
88 | - proxy_redirect off; | ||
89 | - proxy_pass http://yohobuy-pc; | ||
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"; | 127 | + if ($httpsFlag = 0) { |
128 | + return 301 http://$host$request_uri; | ||
129 | + } | ||
130 | + | ||
131 | + proxy_redirect off; | ||
132 | + proxy_pass http://yohobuy-pc; | ||
133 | + proxy_set_header Host $host; | ||
134 | + proxy_set_header X-Real-IP $remote_addr; | ||
135 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
136 | + proxy_set_header Accept-Encoding "gzip"; | ||
94 | } | 137 | } |
138 | + | ||
95 | } | 139 | } |
96 | 140 | ||
97 | server | 141 | server |
@@ -102,7 +146,7 @@ server | @@ -102,7 +146,7 @@ server | ||
102 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | 146 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; |
103 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | 147 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; |
104 | 148 | ||
105 | - root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | 149 | + root /Data/PE/yohobuy_pc/yohobuy/www.yohobuy.com/public; |
106 | 150 | ||
107 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | 151 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
108 | error_log /Data/logs/error_pc.yohobuy.com.log warn; | 152 | error_log /Data/logs/error_pc.yohobuy.com.log warn; |
@@ -120,20 +164,12 @@ server | @@ -120,20 +164,12 @@ server | ||
120 | include vhosts/location/yohobuypc_php.conf; | 164 | include vhosts/location/yohobuypc_php.conf; |
121 | 165 | ||
122 | # node | 166 | # node |
123 | - include vhosts/location/yohobuypc_node.conf; | 167 | + include vhosts/location/yohobuypc_node443.conf; |
124 | 168 | ||
125 | location ~* /special_(\d+)_(.*)\.html$ { | 169 | location ~* /special_(\d+)_(.*)\.html$ { |
126 | return 301 http://$host$request_uri; | 170 | return 301 http://$host$request_uri; |
127 | } | 171 | } |
128 | 172 | ||
129 | - location ~* /special/(\d+)_(.*)\.html$ { | ||
130 | - return 301 http://$host$request_uri; | ||
131 | - } | ||
132 | - | ||
133 | - location ^~ /home/returns { | ||
134 | - return 301 http://$host$request_uri; | ||
135 | - } | ||
136 | - | ||
137 | location = /index.html { | 173 | location = /index.html { |
138 | return 301 http://www.yohobuy.com/; | 174 | return 301 http://www.yohobuy.com/; |
139 | } | 175 | } |
@@ -143,7 +179,7 @@ server | @@ -143,7 +179,7 @@ server | ||
143 | } | 179 | } |
144 | 180 | ||
145 | #https flag, 1 means HTTPS, 0 means HTTP | 181 | #https flag, 1 means HTTPS, 0 means HTTP |
146 | - set $httpsFlag 0; | 182 | + set $httpsFlag 1; |
147 | 183 | ||
148 | location / { | 184 | location / { |
149 | if ($httpsFlag = 0) { | 185 | if ($httpsFlag = 0) { |
@@ -181,7 +217,7 @@ server | @@ -181,7 +217,7 @@ server | ||
181 | { | 217 | { |
182 | listen 80; | 218 | listen 80; |
183 | server_name huodong.yohobuy.com; | 219 | server_name huodong.yohobuy.com; |
184 | - root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | 220 | + root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public; |
185 | 221 | ||
186 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | 222 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
187 | error_log /Data/logs/error_pc.yohobuy.com.log warn; | 223 | error_log /Data/logs/error_pc.yohobuy.com.log warn; |
@@ -216,7 +252,7 @@ server | @@ -216,7 +252,7 @@ server | ||
216 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | 252 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; |
217 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | 253 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; |
218 | 254 | ||
219 | - root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | 255 | + root /Data/PE/yohobuy_pc/yohobuy/huodong.yohobuy.com/public; |
220 | 256 | ||
221 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | 257 | access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; |
222 | error_log /Data/logs/error_pc.yohobuy.com.log warn; | 258 | error_log /Data/logs/error_pc.yohobuy.com.log warn; |
@@ -249,55 +285,40 @@ server | @@ -249,55 +285,40 @@ server | ||
249 | server | 285 | server |
250 | { | 286 | { |
251 | listen 80; | 287 | listen 80; |
252 | - #listen 443 ssl; | 288 | + listen 443 ssl; |
253 | 289 | ||
254 | server_name yohobuy.com; | 290 | server_name yohobuy.com; |
255 | - #ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/pc/server.pem; | ||
256 | - #ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/pc/server.key; | 291 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; |
292 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
257 | 293 | ||
258 | - # access_log /Data/logs/nginx/access_pc.yohobuy.com.log fenxi; | ||
259 | - error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
260 | location = / { | 294 | location = / { |
261 | return 301 http://www.yohobuy.com/; | 295 | return 301 http://www.yohobuy.com/; |
262 | } | 296 | } |
263 | } | 297 | } |
264 | 298 | ||
265 | - | ||
266 | server | 299 | server |
267 | { | 300 | { |
268 | - listen 443; | 301 | + listen 80; |
302 | + listen 443 ssl; | ||
269 | server_name analytics.m.yohobuy.com; | 303 | server_name analytics.m.yohobuy.com; |
270 | 304 | ||
271 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem; | 305 | ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem; |
272 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key; | 306 | ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key; |
307 | + ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; | ||
273 | 308 | ||
274 | - # https key | ||
275 | - include vhosts/location/yohobuywap_httpskey.conf; | ||
276 | - | ||
277 | - location / { | ||
278 | - proxy_redirect off; | ||
279 | - proxy_pass http://yohobuy_analytics; | ||
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 | - proxy_set_header http_referer $http_referer; | ||
285 | - } | ||
286 | -} | ||
287 | - | ||
288 | - server | ||
289 | -{ | ||
290 | - listen 80; | ||
291 | - server_name analytics.m.yohobuy.com; | ||
292 | - | ||
293 | - location / { | ||
294 | - proxy_redirect off; | ||
295 | - proxy_pass http://yohobuy_analytics; | ||
296 | - proxy_set_header Host $host; | ||
297 | - proxy_set_header X-Real-IP $remote_addr; | ||
298 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
299 | - proxy_set_header Accept-Encoding "gzip"; | ||
300 | - proxy_set_header http_referer $http_referer; | ||
301 | - } | 309 | + ssl_prefer_server_ciphers on; |
310 | + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
311 | + 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"; | ||
312 | + ssl_session_tickets off; | ||
313 | + ssl_session_cache shared:SSL:10m; | ||
302 | 314 | ||
303 | -} | 315 | + location / { |
316 | + proxy_redirect off; | ||
317 | + proxy_pass http://yohobuy_analytics; | ||
318 | + proxy_set_header Host $host; | ||
319 | + proxy_set_header X-Real-IP $remote_addr; | ||
320 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
321 | + proxy_set_header Accept-Encoding "gzip"; | ||
322 | + proxy_set_header http_referer $http_referer; | ||
323 | + } | ||
324 | +} |
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name www.yohobuy.com; | ||
5 | + root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | ||
6 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
7 | + | ||
8 | + ############################################################## begin | ||
9 | + # if the protocol is http, please open these configs, otherwise close these configs. | ||
10 | + # exception, alwalys use http protocol | ||
11 | + #include vhosts/location/yohobuypc_exception.conf; | ||
12 | + | ||
13 | + # static file | ||
14 | + #include vhosts/location/yohobuypc_static.conf; | ||
15 | + | ||
16 | + # old idc | ||
17 | + #include vhosts/location/yohobuypc_idc.conf; | ||
18 | + | ||
19 | + # php | ||
20 | + #include vhosts/location/yohobuypc_php.conf; | ||
21 | + | ||
22 | + # node | ||
23 | + #include vhosts/location/yohobuypc_node80.conf; | ||
24 | + ############################################################## end | ||
25 | + | ||
26 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
27 | + set $httpsFlag 1; | ||
28 | + | ||
29 | + location / { | ||
30 | + if ($httpsFlag = 1) { | ||
31 | + return 301 https://$host$request_uri; | ||
32 | + } | ||
33 | + | ||
34 | + proxy_redirect off; | ||
35 | + proxy_pass http://yohobuy-pc; | ||
36 | + proxy_set_header Host $host; | ||
37 | + proxy_set_header X-Real-IP $remote_addr; | ||
38 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
39 | + proxy_set_header Accept-Encoding "gzip"; | ||
40 | + } | ||
41 | +} | ||
42 | + | ||
43 | +server | ||
44 | +{ | ||
45 | + listen 80; | ||
46 | + server_name *.yohobuy.com; | ||
47 | + root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | ||
48 | + | ||
49 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
50 | + | ||
51 | + ############################################################## begin | ||
52 | + # if the protocol is http, please open these configs, otherwise close these configs. | ||
53 | + # exception, alwalys use http protocol | ||
54 | + #include vhosts/location/yohobuypc_exception.conf; | ||
55 | + | ||
56 | + # static file | ||
57 | + #include vhosts/location/yohobuypc_static.conf; | ||
58 | + | ||
59 | + # old idc | ||
60 | + #include vhosts/location/yohobuypc_idc.conf; | ||
61 | + | ||
62 | + # php | ||
63 | + #include vhosts/location/yohobuypc_php.conf; | ||
64 | + ############################################################## end | ||
65 | + | ||
66 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
67 | + set $httpsFlag 1; | ||
68 | + | ||
69 | + location / { | ||
70 | + if ($httpsFlag = 1) { | ||
71 | + return 301 https://$host$request_uri; | ||
72 | + } | ||
73 | + | ||
74 | + proxy_redirect off; | ||
75 | + proxy_pass http://yohobuy-pc; | ||
76 | + proxy_set_header Host $host; | ||
77 | + proxy_set_header X-Real-IP $remote_addr; | ||
78 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
79 | + proxy_set_header Accept-Encoding "gzip"; | ||
80 | + } | ||
81 | +} | ||
82 | + | ||
83 | + | ||
84 | +server | ||
85 | +{ | ||
86 | + listen 443; | ||
87 | + server_name www.yohobuy.com; | ||
88 | + | ||
89 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
90 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
91 | + | ||
92 | + root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | ||
93 | + | ||
94 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
95 | + | ||
96 | + # https key | ||
97 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
98 | + | ||
99 | + ############################################################## begin | ||
100 | + # if the protocol is https, please open these configs, otherwise close these configs. | ||
101 | + # exception, alwalys use http protocol | ||
102 | + include vhosts/location/yohobuypc_exception.conf; | ||
103 | + | ||
104 | + # static file | ||
105 | + include vhosts/location/yohobuypc_static.conf; | ||
106 | + | ||
107 | + # old idc | ||
108 | + include vhosts/location/yohobuypc_idc.conf; | ||
109 | + | ||
110 | + # php | ||
111 | + include vhosts/location/yohobuypc_php.conf; | ||
112 | + | ||
113 | + # node | ||
114 | + include vhosts/location/yohobuypc_node443.conf; | ||
115 | + ############################################################## end | ||
116 | + | ||
117 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
118 | + set $httpsFlag 1; | ||
119 | + | ||
120 | + location / { | ||
121 | + if ($httpsFlag = 0) { | ||
122 | + return 301 http://$host$request_uri; | ||
123 | + } | ||
124 | + proxy_redirect off; | ||
125 | + proxy_pass http://yohobuy-pc; | ||
126 | + proxy_set_header Host $host; | ||
127 | + proxy_set_header X-Real-IP $remote_addr; | ||
128 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
129 | + proxy_set_header Accept-Encoding "gzip"; | ||
130 | + } | ||
131 | +} | ||
132 | + | ||
133 | +server | ||
134 | +{ | ||
135 | + listen 443; | ||
136 | + server_name *.yohobuy.com; | ||
137 | + | ||
138 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
139 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
140 | + | ||
141 | + root /Data/code/git/web/yohobuy/yohobuy/www.yohobuy.com/public; | ||
142 | + | ||
143 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
144 | + | ||
145 | + # https key | ||
146 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
147 | + | ||
148 | + ############################################################## begin | ||
149 | + # if the protocol is https, please open these configs, otherwise close these configs. | ||
150 | + # exception, alwalys use http protocol | ||
151 | + include vhosts/location/yohobuypc_exception.conf; | ||
152 | + | ||
153 | + # static file | ||
154 | + include vhosts/location/yohobuypc_static.conf; | ||
155 | + | ||
156 | + # old idc | ||
157 | + include vhosts/location/yohobuypc_idc.conf; | ||
158 | + | ||
159 | + # php | ||
160 | + include vhosts/location/yohobuypc_php.conf; | ||
161 | + ############################################################## end | ||
162 | + | ||
163 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
164 | + set $httpsFlag 1; | ||
165 | + | ||
166 | + location / { | ||
167 | + if ($httpsFlag = 0) { | ||
168 | + return 301 http://$host$request_uri; | ||
169 | + } | ||
170 | + proxy_redirect off; | ||
171 | + proxy_pass http://yohobuy-pc; | ||
172 | + proxy_set_header Host $host; | ||
173 | + proxy_set_header X-Real-IP $remote_addr; | ||
174 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
175 | + proxy_set_header Accept-Encoding "gzip"; | ||
176 | + } | ||
177 | +} | ||
178 | + | ||
179 | +server | ||
180 | +{ | ||
181 | + listen 80; | ||
182 | + server_name admin.yohobuy.com union.yohobuy.com; | ||
183 | + | ||
184 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
185 | + | ||
186 | + location / { | ||
187 | + proxy_redirect off; | ||
188 | + proxy_pass http://yohobuy-old-www; | ||
189 | + proxy_set_header Host admin.yohobuy.com; | ||
190 | + proxy_set_header X-Real-IP $remote_addr; | ||
191 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
192 | + proxy_set_header Accept-Encoding "gzip"; | ||
193 | + } | ||
194 | +} | ||
195 | + | ||
196 | +server | ||
197 | +{ | ||
198 | + listen 80; | ||
199 | + server_name huodong.yohobuy.com; | ||
200 | + root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | ||
201 | + | ||
202 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
203 | + | ||
204 | + location ^~ /cuxiao { | ||
205 | + proxy_redirect off; | ||
206 | + proxy_pass http://yohobuy-pc; | ||
207 | + proxy_set_header Host $host; | ||
208 | + proxy_set_header X-Real-IP $remote_addr; | ||
209 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
210 | + proxy_set_header Accept-Encoding "gzip"; | ||
211 | + } | ||
212 | + | ||
213 | + location / { | ||
214 | + proxy_redirect off; | ||
215 | + proxy_pass http://yohobuy-old-huodong; | ||
216 | + proxy_set_header Host $host; | ||
217 | + proxy_set_header X-Real-IP $remote_addr; | ||
218 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
219 | + proxy_set_header Accept-Encoding "gzip"; | ||
220 | + } | ||
221 | + | ||
222 | + # static file | ||
223 | + include vhosts/location/yohobuypc_static.conf; | ||
224 | +} | ||
225 | + | ||
226 | +server | ||
227 | +{ | ||
228 | + listen 443; | ||
229 | + server_name huodong.yohobuy.com; | ||
230 | + | ||
231 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
232 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
233 | + | ||
234 | + root /Data/code/git/web/yohobuy/yohobuy/huodong.yohobuy.com/public; | ||
235 | + | ||
236 | + error_log /Data/logs/error_pc.yohobuy.com.log warn; | ||
237 | + | ||
238 | + # https key | ||
239 | + include vhosts/location/yohobuypc_httpskey.conf; | ||
240 | + | ||
241 | + location ^~ /cuxiao { | ||
242 | + proxy_redirect off; | ||
243 | + proxy_pass http://yohobuy-pc; | ||
244 | + proxy_set_header Host $host; | ||
245 | + proxy_set_header X-Real-IP $remote_addr; | ||
246 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
247 | + proxy_set_header Accept-Encoding "gzip"; | ||
248 | + } | ||
249 | + | ||
250 | + location / { | ||
251 | + proxy_redirect off; | ||
252 | + proxy_pass http://yohobuy-old-huodong; | ||
253 | + proxy_set_header Host $host; | ||
254 | + proxy_set_header X-Real-IP $remote_addr; | ||
255 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
256 | + proxy_set_header Accept-Encoding "gzip"; | ||
257 | + } | ||
258 | + | ||
259 | + # static file | ||
260 | + include vhosts/location/yohobuypc_static.conf; | ||
261 | +} | ||
262 | + | ||
263 | +server | ||
264 | +{ | ||
265 | + listen 80; | ||
266 | + listen 443 ssl; | ||
267 | + | ||
268 | + server_name yohobuy.com; | ||
269 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
270 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
271 | + | ||
272 | + location = / { | ||
273 | + return 301 http://www.yohobuy.com/; | ||
274 | + } | ||
275 | +} | ||
276 | + | ||
277 | +server | ||
278 | +{ | ||
279 | + listen 80; | ||
280 | + listen 443 ssl; | ||
281 | + server_name analytics.m.yohobuy.com; | ||
282 | + | ||
283 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/server.crt; | ||
284 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/server.key; | ||
285 | + ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; | ||
286 | + | ||
287 | + ssl_prefer_server_ciphers on; | ||
288 | + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
289 | + 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"; | ||
290 | + ssl_session_tickets off; | ||
291 | + ssl_session_cache shared:SSL:10m; | ||
292 | + | ||
293 | + location / { | ||
294 | + proxy_redirect off; | ||
295 | + proxy_pass http://yohobuy_analytics; | ||
296 | + proxy_set_header Host $host; | ||
297 | + proxy_set_header X-Real-IP $remote_addr; | ||
298 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
299 | + proxy_set_header Accept-Encoding "gzip"; | ||
300 | + proxy_set_header http_referer $http_referer; | ||
301 | + } | ||
302 | +} |
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name 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_wap.yohobuy.com.log warn; | ||
8 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
9 | + | ||
10 | + # old idc | ||
11 | + include vhosts/location/yohobuywap_idc.conf; | ||
12 | + # app | ||
13 | + include vhosts/location/yohobuywap_app.conf; | ||
14 | + # php | ||
15 | + include vhosts/location/yohobuywap_php.conf; | ||
16 | + # node | ||
17 | + #include vhosts/location/yohobuywap_node.conf; | ||
18 | + # static file | ||
19 | + include vhosts/location/yohobuywap_static.conf; | ||
20 | + | ||
21 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
22 | + set $httpsFlag 1; | ||
23 | + | ||
24 | + location / { | ||
25 | + if ($httpsFlag = 1) { | ||
26 | + return 301 https://$host$request_uri; | ||
27 | + } | ||
28 | + | ||
29 | + proxy_redirect off; | ||
30 | + proxy_pass http://yohobuy; | ||
31 | + proxy_set_header Host $host; | ||
32 | + proxy_set_header X-Real-IP $remote_addr; | ||
33 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
34 | + proxy_set_header Accept-Encoding "gzip"; | ||
35 | + } | ||
36 | +} | ||
37 | + | ||
38 | + | ||
39 | +server | ||
40 | +{ | ||
41 | + listen 443; | ||
42 | + server_name m.yohobuy.com; | ||
43 | + | ||
44 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/yohobuy.pem; | ||
45 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/yohobuy.key; | ||
46 | + | ||
47 | + # https key | ||
48 | + include vhosts/location/yohobuywap_httpskey.conf; | ||
49 | + | ||
50 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
51 | + | ||
52 | + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; | ||
53 | + error_log /Data/logs/error_wap.yohobuy.com.log warn; | ||
54 | + | ||
55 | + # old idc | ||
56 | + include vhosts/location/yohobuywap_idc.conf; | ||
57 | + # app | ||
58 | + include vhosts/location/yohobuywap_app.conf; | ||
59 | + # php | ||
60 | + include vhosts/location/yohobuywap_php.conf; | ||
61 | + # node | ||
62 | + include vhosts/location/yohobuywap_node.conf; | ||
63 | + # static file | ||
64 | + include vhosts/location/yohobuywap_static.conf; | ||
65 | + | ||
66 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
67 | + set $httpsFlag 1; | ||
68 | + | ||
69 | + location / { | ||
70 | + if ($httpsFlag = 0) { | ||
71 | + return 301 http://$host$request_uri; | ||
72 | + } | ||
73 | + proxy_redirect off; | ||
74 | + proxy_pass http://yohobuy; | ||
75 | + proxy_set_header Host $host; | ||
76 | + proxy_set_header X-Real-IP $remote_addr; | ||
77 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
78 | + proxy_set_header Accept-Encoding "gzip"; | ||
79 | + } | ||
80 | +} | ||
81 | + | ||
82 | +server | ||
83 | +{ | ||
84 | + | ||
85 | + listen 80; | ||
86 | + server_name guang.m.yohobuy.com; | ||
87 | + | ||
88 | + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; | ||
89 | + error_log /Data/logs/error_wap.yohobuy.com.log warn; | ||
90 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
91 | + | ||
92 | + # static file | ||
93 | + include vhosts/location/yohobuywap_static.conf; | ||
94 | + | ||
95 | + # guang rss | ||
96 | + location ^~ /rss { | ||
97 | + proxy_redirect off; | ||
98 | + proxy_pass http://yohobuy; | ||
99 | + proxy_set_header Host $host; | ||
100 | + proxy_set_header X-Real-IP $remote_addr; | ||
101 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
102 | + proxy_set_header Accept-Encoding "gzip"; | ||
103 | + } | ||
104 | + | ||
105 | + location / { | ||
106 | + proxy_redirect off; | ||
107 | + proxy_pass http://yohobuy; | ||
108 | + proxy_set_header Host $host; | ||
109 | + proxy_set_header X-Real-IP $remote_addr; | ||
110 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
111 | + proxy_set_header Accept-Encoding "gzip"; | ||
112 | + } | ||
113 | +} | ||
114 | + | ||
115 | +server | ||
116 | +{ | ||
117 | + listen 80; | ||
118 | + server_name *.m.yohobuy.com; | ||
119 | + | ||
120 | + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; | ||
121 | + error_log /Data/logs/error_wap.yohobuy.com.log warn; | ||
122 | + | ||
123 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
124 | + # static file | ||
125 | + include vhosts/location/yohobuywap_static.conf; | ||
126 | + | ||
127 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
128 | + set $httpsFlag 1; | ||
129 | + | ||
130 | + location / { | ||
131 | + if ($httpsFlag = 1) { | ||
132 | + return 301 https://$host$request_uri; | ||
133 | + } | ||
134 | + proxy_redirect off; | ||
135 | + proxy_pass http://yohobuy; | ||
136 | + proxy_set_header Host $host; | ||
137 | + proxy_set_header X-Real-IP $remote_addr; | ||
138 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
139 | + proxy_set_header Accept-Encoding "gzip"; | ||
140 | + } | ||
141 | +} | ||
142 | + | ||
143 | +server | ||
144 | +{ | ||
145 | + listen 443; | ||
146 | + server_name *.m.yohobuy.com; | ||
147 | + | ||
148 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem; | ||
149 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key; | ||
150 | + | ||
151 | + # https key | ||
152 | + include vhosts/location/yohobuywap_httpskey.conf; | ||
153 | + | ||
154 | + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; | ||
155 | + error_log /Data/logs/error_wap.yohobuy.com.log warn; | ||
156 | + | ||
157 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
158 | + | ||
159 | + # static file | ||
160 | + include vhosts/location/yohobuywap_static.conf; | ||
161 | + | ||
162 | + # idc old proxy. while login to write memcache and cookie (if need?) | ||
163 | + location ^~ /Passport/session { | ||
164 | + access_log /Data/logs/access.m.yohobuy.com.log fenxi; | ||
165 | + proxy_redirect off; | ||
166 | + proxy_pass http://yohobuy_idc; | ||
167 | + proxy_set_header Host mapi.yohobuy.com; | ||
168 | + proxy_set_header X-Real-IP $remote_addr; | ||
169 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
170 | + proxy_set_header Accept-Encoding "gzip"; | ||
171 | + } | ||
172 | + # guang rss | ||
173 | + location ^~ /rss { | ||
174 | + proxy_redirect off; | ||
175 | + proxy_pass http://yohobuy; | ||
176 | + proxy_set_header Host $host; | ||
177 | + proxy_set_header X-Real-IP $remote_addr; | ||
178 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
179 | + proxy_set_header Accept-Encoding "gzip"; | ||
180 | + } | ||
181 | + | ||
182 | + #https flag, 1 means HTTPS, 0 means HTTP | ||
183 | + set $httpsFlag 1; | ||
184 | + | ||
185 | + location / { | ||
186 | + if ($httpsFlag = 0) { | ||
187 | + return 301 http://$host$request_uri; | ||
188 | + } | ||
189 | + proxy_redirect off; | ||
190 | + proxy_pass http://yohobuy; | ||
191 | + proxy_set_header Host $host; | ||
192 | + proxy_set_header X-Real-IP $remote_addr; | ||
193 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
194 | + proxy_set_header Accept-Encoding "gzip"; | ||
195 | + } | ||
196 | +} | ||
197 | + | ||
198 | +server | ||
199 | +{ | ||
200 | + listen 80; | ||
201 | + server_name cuxiao.m.yohobuy.com; | ||
202 | + | ||
203 | + access_log /Data/logs/nginx/access_wap.yohobuy.com.log fenxi; | ||
204 | + error_log /Data/logs/error_wap.yohobuy.com.log warn; | ||
205 | + | ||
206 | + location / { | ||
207 | + proxy_redirect off; | ||
208 | + proxy_pass http://yohobuy_idc; | ||
209 | + proxy_set_header Host cuxiao.m.yohobuy.com; | ||
210 | + proxy_set_header X-Real-IP $remote_addr; | ||
211 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
212 | + proxy_set_header Accept-Encoding "gzip"; | ||
213 | + } | ||
214 | +} | ||
215 | + | ||
216 | + | ||
217 | + | ||
218 | +server | ||
219 | +{ | ||
220 | + listen 80; | ||
221 | + listen 443 ssl; | ||
222 | + server_name analytics.m.yohobuy.com; | ||
223 | + error_log /Data/logs/nginx/access_m_analytics_error.log warn; | ||
224 | + access_log /Data/logs/nginx/access_m_analytics.log fenxi; | ||
225 | + | ||
226 | + ssl_certificate /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.pem; | ||
227 | + ssl_certificate_key /Data/local/nginx-1.8.0/conf/ssl/m.yohobuy.key; | ||
228 | + ssl_dhparam /Data/local/nginx-1.8.0/conf/ssl/dhparam.pem; | ||
229 | + | ||
230 | + ssl_prefer_server_ciphers on; | ||
231 | + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
232 | + 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"; | ||
233 | + ssl_session_tickets off; | ||
234 | + ssl_session_cache shared:SSL:10m; | ||
235 | + | ||
236 | + root /Data/PE/yohobuy_H5/yohobuy/m.yohobuy.com/public; | ||
237 | + | ||
238 | + | ||
239 | + location / { | ||
240 | + proxy_redirect off; | ||
241 | + proxy_pass http://yohobuy_analytics; | ||
242 | + proxy_set_header Host $host; | ||
243 | + proxy_set_header X-Real-IP $remote_addr; | ||
244 | + proxy_set_header X-Forwarded-For $http_x_forwarded_for; | ||
245 | + proxy_set_header Accept-Encoding "gzip"; | ||
246 | + proxy_set_header http_referer $http_referer; | ||
247 | + } | ||
248 | + | ||
249 | +} | ||
250 | + | ||
251 | + | ||
252 | + |
web-static/dist/yohobuy/assets/img/home/close.png
100644 → 100755
web-static/dist/yohobuy/assets/img/home/doubt.png
100644 → 100755
web-static/dist/yohobuy/assets/img/home/recyclebin.png
100644 → 100755
-
Please register or login to post a comment