1
|
-
|
|
|
2
|
-server
|
|
|
3
|
-{
|
|
|
4
|
- listen 80;
|
|
|
5
|
- server_name m.yohobuy.com;
|
|
|
6
|
-
|
|
|
7
|
- #access_log /Data/logs/access.buy.test.yoho.cn.log combined;
|
|
|
8
|
- error_log /Data/logs/nginx/error.m.yohobuy.com.log warn;
|
|
|
9
|
-
|
|
|
10
|
- root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
11
|
-
|
|
|
12
|
- location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
13
|
- expires 30d;
|
|
|
14
|
- }
|
|
|
15
|
- location =/crossdomain.xml {
|
|
|
16
|
- expires 7d;
|
|
|
17
|
- }
|
|
|
18
|
- location =/sitemap.xml {
|
|
|
19
|
- expires 1d;
|
|
|
20
|
- }
|
|
|
21
|
- location =/robots.txt {
|
|
|
22
|
- expires 1d;
|
|
|
23
|
- }
|
|
|
24
|
-
|
|
|
25
|
- # login and register 301 redirect to https
|
|
|
26
|
- location = /reg.html {
|
|
|
27
|
- proxy_redirect off;
|
|
|
28
|
- proxy_pass http://yohobuy;
|
|
|
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
|
- location = /signin.html {
|
|
|
35
|
- proxy_redirect off;
|
|
|
36
|
- proxy_pass http://yohobuy;
|
|
|
37
|
- proxy_set_header Host $host;
|
|
|
38
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
39
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
40
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
41
|
- }
|
|
|
42
|
- location = /login.html {
|
|
|
43
|
- proxy_redirect off;
|
|
|
44
|
- proxy_pass http://yohobuy;
|
|
|
45
|
- proxy_set_header Host $host;
|
|
|
46
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
47
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
48
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
49
|
- }
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
- location =/appembed {
|
|
|
53
|
- default_type application/json;
|
|
|
54
|
- return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
|
|
|
55
|
- }
|
|
|
56
|
- location =/lb/v1 {
|
|
|
57
|
- #cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7
|
|
|
58
|
- #acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:kai: 352f028bd6ecf28de1c285c573642659 guang:7ea6bdf07376a928c5d4677789c45463
|
|
|
59
|
- #srp 62a165d59f8daf42e2df5f3c5aed8a2f krp:17d7a40f313560d4d9a1189a91e45ab9
|
|
|
60
|
- #boc 94931e4a3036baeecdacb975e10a8ec6 bcc:dc9262a469f6f315f74c087a7b3a7f35
|
|
|
61
|
- default_type application/json;
|
|
|
62
|
- return 200 '{"code":200,"message":"Config Success","md5":"1231231231231","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"7ea6bdf07376a928c5d4677789c45463","rp":"62a165d59f8daf42e2df5f3c5aed8a2f","bv":"94931e4a3036baeecdacb975e10a8ec6","dl":"2a90dfa0f37b92aaebf369e9a4d38ba4"}}';
|
|
|
63
|
- }
|
|
|
64
|
-
|
|
|
65
|
- # 一些静态页面有关
|
|
|
66
|
- location = /help/limitcodehelp.html {
|
|
|
67
|
- root /Data/code/git/yohobuy/assets;
|
|
|
68
|
- expires 7d;
|
|
|
69
|
- }
|
|
|
70
|
- location = /help/limitcodeintro.html {
|
|
|
71
|
- root /Data/code/git/yohobuy/assets;
|
|
|
72
|
- expires 7d;
|
|
|
73
|
- }
|
|
|
74
|
- location = /help/shareorder.html {
|
|
|
75
|
- root /Data/code/git/yohobuy/assets;
|
|
|
76
|
- expires 7d;
|
|
|
77
|
- }
|
|
|
78
|
- location = /emailback.html {
|
|
|
79
|
- root /Data/code/git/yohobuy/assets;
|
|
|
80
|
- expires 7d;
|
|
|
81
|
- }
|
|
|
82
|
- location = /phoneback.html {
|
|
|
83
|
- root /Data/code/git/yohobuy/assets;
|
|
|
84
|
- expires 7d;
|
|
|
85
|
- }
|
|
|
86
|
- location = /error.html {
|
|
|
87
|
- root /Data/code/git/yohobuy/assets;
|
|
|
88
|
- expires 7d;
|
|
|
89
|
- }
|
|
|
90
|
-
|
|
|
91
|
- location ^~ /dist/ {
|
|
|
92
|
- proxy_redirect off;
|
|
|
93
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
94
|
- proxy_pass http://cdn.yoho.cn/;
|
|
|
95
|
- }
|
|
|
96
|
-
|
|
|
97
|
- # location / {
|
|
|
98
|
- # return 301 https://m.yohobuy.com$request_uri;
|
|
|
99
|
- # }
|
|
|
100
|
-
|
|
|
101
|
- location / {
|
|
|
102
|
- proxy_redirect off;
|
|
|
103
|
- proxy_pass http://yohobuy;
|
|
|
104
|
- proxy_set_header Host $host;
|
|
|
105
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
106
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
107
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
108
|
- }
|
|
|
109
|
-
|
|
|
110
|
- # 老页面
|
|
|
111
|
- location =/invite.html {
|
|
|
112
|
- proxy_redirect off;
|
|
|
113
|
- proxy_pass http://119.254.81.245;
|
|
|
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 =/app.html {
|
|
|
120
|
- proxy_redirect off;
|
|
|
121
|
- proxy_pass http://119.254.81.245;
|
|
|
122
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
123
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
124
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
125
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
126
|
- }
|
|
|
127
|
- location =/yohood.html {
|
|
|
128
|
- proxy_redirect off;
|
|
|
129
|
- proxy_pass http://119.254.81.245;
|
|
|
130
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
131
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
132
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
133
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
134
|
- }
|
|
|
135
|
- #location ^~ /home/message {
|
|
|
136
|
- # proxy_redirect off;
|
|
|
137
|
- # proxy_pass http://119.254.81.245;
|
|
|
138
|
- # proxy_set_header Host m.yohobuy.com;
|
|
|
139
|
- # proxy_set_header X-Real-IP $remote_addr;
|
|
|
140
|
- # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
141
|
- # proxy_set_header Accept-Encoding "gzip";
|
|
|
142
|
- #}
|
|
|
143
|
- location ^~ /home/lottery {
|
|
|
144
|
- proxy_redirect off;
|
|
|
145
|
- proxy_pass http://119.254.81.245;
|
|
|
146
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
147
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
148
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
149
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
150
|
- }
|
|
|
151
|
- location ^~ /home/redenvelopes {
|
|
|
152
|
- proxy_redirect off;
|
|
|
153
|
- proxy_pass http://119.254.81.245;
|
|
|
154
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
155
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
156
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
157
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
158
|
- }
|
|
|
159
|
- location ^~ /home/orders/tickets {
|
|
|
160
|
- proxy_redirect off;
|
|
|
161
|
- proxy_pass http://119.254.81.245;
|
|
|
162
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
163
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
164
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
165
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
166
|
- }
|
|
|
167
|
- location ^~ /home/currency/ {
|
|
|
168
|
- proxy_redirect off;
|
|
|
169
|
- proxy_pass http://119.254.81.245;
|
|
|
170
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
171
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
172
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
173
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
174
|
- }
|
|
|
175
|
- location = /home/orders/cancel {
|
|
|
176
|
- proxy_redirect off;
|
|
|
177
|
- proxy_pass http://119.254.81.245;
|
|
|
178
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
179
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
180
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
181
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
182
|
- }
|
|
|
183
|
- location ^~ /wechat {
|
|
|
184
|
- proxy_redirect off;
|
|
|
185
|
- proxy_pass http://119.254.81.245;
|
|
|
186
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
187
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
188
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
189
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
190
|
- }
|
|
|
191
|
- location ^~ /huodong {
|
|
|
192
|
- proxy_redirect off;
|
|
|
193
|
- proxy_pass http://119.254.81.245;
|
|
|
194
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
195
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
196
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
197
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
198
|
- }
|
|
|
199
|
- location ^~ /download {
|
|
|
200
|
- proxy_redirect off;
|
|
|
201
|
- proxy_pass http://119.254.81.245;
|
|
|
202
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
203
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
204
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
205
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
206
|
- }
|
|
|
207
|
- location ^~ /events {
|
|
|
208
|
- proxy_redirect off;
|
|
|
209
|
- proxy_pass http://119.254.81.245;
|
|
|
210
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
211
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
212
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
213
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
214
|
- }
|
|
|
215
|
- location ^~ /appactive {
|
|
|
216
|
- proxy_redirect off;
|
|
|
217
|
- proxy_pass http://119.254.81.245;
|
|
|
218
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
219
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
220
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
221
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
222
|
- }
|
|
|
223
|
- location ^~ /cart/success {
|
|
|
224
|
- proxy_redirect off;
|
|
|
225
|
- proxy_pass http://119.254.81.245;
|
|
|
226
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
227
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
228
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
229
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
230
|
- }
|
|
|
231
|
- location ^~ /shopping/success {
|
|
|
232
|
- proxy_redirect off;
|
|
|
233
|
- proxy_pass http://119.254.81.245;
|
|
|
234
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
235
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
236
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
237
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
238
|
- }
|
|
|
239
|
- location ^~ /shopping/pay/aliwap {
|
|
|
240
|
- proxy_redirect off;
|
|
|
241
|
- proxy_pass http://119.254.81.245;
|
|
|
242
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
243
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
244
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
245
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
246
|
- }
|
|
|
247
|
- location = /shopping/pay/wechatwap {
|
|
|
248
|
- proxy_redirect off;
|
|
|
249
|
- proxy_pass http://119.254.81.245;
|
|
|
250
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
251
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
252
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
253
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
254
|
- }
|
|
|
255
|
- location ^~ /passport/syncsignin {
|
|
|
256
|
- proxy_redirect off;
|
|
|
257
|
- proxy_pass http://119.254.81.245;
|
|
|
258
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
259
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
260
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
261
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
262
|
- }
|
|
|
263
|
-
|
|
|
264
|
- location =/product/index/search {
|
|
|
265
|
- proxy_redirect off;
|
|
|
266
|
- proxy_pass http://119.254.81.245;
|
|
|
267
|
- proxy_set_header Host m.yohobuy.com;
|
|
|
268
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
269
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
270
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
271
|
- }
|
|
|
272
|
-
|
|
|
273
|
- location =/download/appsem {
|
|
|
274
|
- return 301 http://cdn.yoho.cn/huodong-web/appsem/appsem.html;
|
|
|
275
|
- }
|
|
|
276
|
-
|
|
|
277
|
-}
|
|
|
278
|
-
|
|
|
279
|
-server
|
|
|
280
|
-{
|
|
|
281
|
- listen 80;
|
|
|
282
|
- server_name *.m.yohobuy.com;
|
|
|
283
|
-
|
|
|
284
|
- #access_log /Data/logs/access.buy.test.yoho.cn.log combined;
|
|
|
285
|
- error_log /Data/logs/nginx/error.m.yohobuy.com.log warn;
|
|
|
286
|
-
|
|
|
287
|
- root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
288
|
-
|
|
|
289
|
- location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
290
|
- expires 30d;
|
|
|
291
|
- }
|
|
|
292
|
- location =/crossdomain.xml {
|
|
|
293
|
- expires 7d;
|
|
|
294
|
- }
|
|
|
295
|
- location =/sitemap.xml {
|
|
|
296
|
- expires 1d;
|
|
|
297
|
- }
|
|
|
298
|
- location =/robots.txt {
|
|
|
299
|
- expires 1d;
|
|
|
300
|
- }
|
|
|
301
|
-
|
|
|
302
|
- location = /error.html {
|
|
|
303
|
- root /Data/code/git/yohobuy/assets;
|
|
|
304
|
- expires 7d;
|
|
|
305
|
- }
|
|
|
306
|
-
|
|
|
307
|
- location ^~ /Passport/session {
|
|
|
308
|
- proxy_redirect off;
|
|
|
309
|
- proxy_pass http://119.254.81.245;
|
|
|
310
|
- proxy_set_header Host m1.yohobuy.com;
|
|
|
311
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
312
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
313
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
314
|
- }
|
|
|
315
|
-
|
|
|
316
|
- # location / {
|
|
|
317
|
- # return 301 https://$host$request_uri;
|
|
|
318
|
- # }
|
|
|
319
|
- #
|
|
|
320
|
-
|
|
|
321
|
- location / {
|
|
|
322
|
- proxy_redirect off;
|
|
|
323
|
- proxy_pass http://yohobuy;
|
|
|
324
|
- proxy_set_header Host $host;
|
|
|
325
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
326
|
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
327
|
- proxy_set_header Accept-Encoding "gzip";
|
|
|
328
|
- }
|
|
|
329
|
-}
|
|
|
330
|
-
|
|
|
331
|
-server
|
|
|
332
|
-{
|
|
|
333
|
- listen 80;
|
|
|
334
|
- # listen 443 ssl;
|
|
|
335
|
- # ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
336
|
- # ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
337
|
- server_name cdn.yoho.cn;
|
|
|
338
|
-
|
|
|
339
|
- # access_log /Data/logs/nginx/access.static.m.yohobuy.com.log combined;
|
|
|
340
|
- # error_log /Data/logs/nginx/error.static.m.yohobuy.com.log warn;
|
|
|
341
|
-
|
|
|
342
|
- root /Data/code/git/yohobuy/static/dist;
|
|
|
343
|
-
|
|
|
344
|
- #location / {
|
|
|
345
|
- # log_not_found off;
|
|
|
346
|
- # access_log off;
|
|
|
347
|
- # #expires 30d;
|
|
|
348
|
- #}
|
|
|
349
|
-
|
|
|
350
|
- location ~* \.(svg|eot|ttf|woff|otf)$ {
|
|
|
351
|
- add_header Access-Control-Allow-Origin *;
|
|
|
352
|
- expires 30d;
|
|
|
353
|
- }
|
|
|
354
|
-
|
|
|
355
|
- location ^~ /yohobuy/ {
|
|
|
356
|
- add_header Access-Control-Allow-Origin *;
|
|
|
357
|
- root /Data/code/git/web/yohobuy/web-static/dist/;
|
|
|
358
|
- }
|
|
|
359
|
- location / {
|
|
|
360
|
- expires 1d;
|
|
|
361
|
- }
|
|
|
362
|
-
|
|
|
363
|
-}
|
|
|
364
|
-
|
|
|
365
|
-# server
|
|
|
366
|
-# {
|
|
|
367
|
-# listen 443;
|
|
|
368
|
-# server_name m.yohobuy.com;
|
|
|
369
|
-# ssl on;
|
|
|
370
|
-# ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
371
|
-# ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
372
|
-# root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
373
|
-
|
|
|
374
|
-# location = /appembed {
|
|
|
375
|
-# default_type application/json;
|
|
|
376
|
-# return 200 '{"code":200,"message":"app embed","data":{"open":"N","url":"http://m.yohobuy.com"}}';
|
|
|
377
|
-# }
|
|
|
378
|
-# location = /lb/v1 {
|
|
|
379
|
-# #cc: e0323a9039add2978bf5b49550572c7c oo:e47ca7a09cf6781e29634502345930a7
|
|
|
380
|
-# #acecl:7ea6bdf07376a928c5d4677789c45463 opqcl:kai: 352f028bd6ecf28de1c285c573642659 guang:7ea6bdf07376a928c5d4677789c45463
|
|
|
381
|
-# #srp 62a165d59f8daf42e2df5f3c5aed8a2f krp:17d7a40f313560d4d9a1189a91e45ab9
|
|
|
382
|
-# #boc 94931e4a3036baeecdacb975e10a8ec6 bcc:dc9262a469f6f315f74c087a7b3a7f35
|
|
|
383
|
-# default_type application/json;
|
|
|
384
|
-# return 200 '{"code":200,"message":"Config Success","md5":"1231231231231","data":{"ae":"e0323a9039add2978bf5b49550572c7c","url":"http://m.yohobuy.com","tl":"7ea6bdf07376a928c5d4677789c45463","rp":"62a165d59f8daf42e2df5f3c5aed8a2f","bv":"94931e4a3036baeecdacb975e10a8ec6"}}';
|
|
|
385
|
-# }
|
|
|
386
|
-
|
|
|
387
|
-# location = /help/shareorder.html {
|
|
|
388
|
-# root /Data/code/git/yohobuy/assets;
|
|
|
389
|
-# expires 7d;
|
|
|
390
|
-# }
|
|
|
391
|
-# location = /emailback.html {
|
|
|
392
|
-# root /Data/code/git/yohobuy/assets;
|
|
|
393
|
-# expires 7d;
|
|
|
394
|
-# }
|
|
|
395
|
-# location = /phoneback.html {
|
|
|
396
|
-# root /Data/code/git/yohobuy/assets;
|
|
|
397
|
-# expires 7d;
|
|
|
398
|
-# }
|
|
|
399
|
-# location = /error.html {
|
|
|
400
|
-# root /Data/code/git/yohobuy/assets;
|
|
|
401
|
-# expires 7d;
|
|
|
402
|
-# }
|
|
|
403
|
-
|
|
|
404
|
-# # login and register 301 redirect to https
|
|
|
405
|
-# location = /reg.html {
|
|
|
406
|
-# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
407
|
-# }
|
|
|
408
|
-# location = /signin.html {
|
|
|
409
|
-# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
410
|
-# }
|
|
|
411
|
-# location = /login.html {
|
|
|
412
|
-# return 301 https://login.m.yohobuy.com$request_uri;
|
|
|
413
|
-# }
|
|
|
414
|
-
|
|
|
415
|
-# location ^~ /Passport/session {
|
|
|
416
|
-# proxy_redirect off;
|
|
|
417
|
-# proxy_pass http://119.254.81.245;
|
|
|
418
|
-# proxy_set_header Host m1.yohobuy.com;
|
|
|
419
|
-# proxy_set_header X-Real-IP $remote_addr;
|
|
|
420
|
-# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
421
|
-# proxy_set_header Accept-Encoding "gzip";
|
|
|
422
|
-# }
|
|
|
423
|
-
|
|
|
424
|
-# location / {
|
|
|
425
|
-# proxy_redirect off;
|
|
|
426
|
-# proxy_pass http://yohobuy;
|
|
|
427
|
-# proxy_set_header Host $host;
|
|
|
428
|
-# proxy_set_header X-Real-IP $remote_addr;
|
|
|
429
|
-# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
430
|
-# proxy_set_header Accept-Encoding "gzip";
|
|
|
431
|
-# }
|
|
|
432
|
-
|
|
|
433
|
-# location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
434
|
-# expires 30d;
|
|
|
435
|
-# }
|
|
|
436
|
-# location =/crossdomain.xml {
|
|
|
437
|
-# expires 30d;
|
|
|
438
|
-# }
|
|
|
439
|
-# location =/sitemap.xml {
|
|
|
440
|
-# expires 1d;
|
|
|
441
|
-# }
|
|
|
442
|
-# location =/robots.txt {
|
|
|
443
|
-# expires 1d;
|
|
|
444
|
-# }
|
|
|
445
|
-# }
|
|
|
446
|
-
|
|
|
447
|
-
|
|
|
448
|
-# server
|
|
|
449
|
-# {
|
|
|
450
|
-# listen 443;
|
|
|
451
|
-# server_name *.m.yohobuy.com;
|
|
|
452
|
-# ssl on;
|
|
|
453
|
-# ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
454
|
-# ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
455
|
-# root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
456
|
-
|
|
|
457
|
-# location = /error.html {
|
|
|
458
|
-# root /Data/code/git/yohobuy/assets;
|
|
|
459
|
-# expires 7d;
|
|
|
460
|
-# }
|
|
|
461
|
-
|
|
|
462
|
-# location ^~ /Passport/session {
|
|
|
463
|
-# proxy_redirect off;
|
|
|
464
|
-# proxy_pass http://119.254.81.245;
|
|
|
465
|
-# proxy_set_header Host m1.yohobuy.com;
|
|
|
466
|
-# proxy_set_header X-Real-IP $remote_addr;
|
|
|
467
|
-# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
468
|
-# proxy_set_header Accept-Encoding "gzip";
|
|
|
469
|
-# }
|
|
|
470
|
-
|
|
|
471
|
-# location / {
|
|
|
472
|
-# proxy_redirect off;
|
|
|
473
|
-# proxy_pass http://yohobuy;
|
|
|
474
|
-# proxy_set_header Host $host;
|
|
|
475
|
-# proxy_set_header X-Real-IP $remote_addr;
|
|
|
476
|
-# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
477
|
-# proxy_set_header Accept-Encoding "gzip";
|
|
|
478
|
-# }
|
|
|
479
|
-
|
|
|
480
|
-# location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
481
|
-# expires 30d;
|
|
|
482
|
-# }
|
|
|
483
|
-# location =/crossdomain.xml {
|
|
|
484
|
-# expires 30d;
|
|
|
485
|
-# }
|
|
|
486
|
-# location =/sitemap.xml {
|
|
|
487
|
-# expires 1d;
|
|
|
488
|
-# }
|
|
|
489
|
-# location =/robots.txt {
|
|
|
490
|
-# expires 1d;
|
|
|
491
|
-# }
|
|
|
492
|
-# } |
|
|