|
@@ -364,4 +364,63 @@ server |
|
@@ -364,4 +364,63 @@ server |
364
|
|
364
|
|
365
|
}
|
365
|
}
|
366
|
|
366
|
|
|
|
367
|
+server
|
|
|
368
|
+{
|
|
|
369
|
+ listen 80;
|
|
|
370
|
+ server_name huodong.m.yohobuy.com;
|
|
|
371
|
+ root /Data/code/git/yohobuy/yohobuy/huodong.m.yohobuy.com/public;
|
|
|
372
|
+ location / {
|
|
|
373
|
+ proxy_redirect off;
|
|
|
374
|
+ proxy_pass http://yohobuy;
|
|
|
375
|
+ proxy_set_header Host $host;
|
|
|
376
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
377
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
378
|
+ proxy_set_header Accept-Encoding "gzip";
|
|
|
379
|
+ }
|
|
|
380
|
+
|
|
|
381
|
+ location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
382
|
+ expires 30d;
|
|
|
383
|
+ }
|
|
|
384
|
+ location =/crossdomain.xml {
|
|
|
385
|
+ expires 30d;
|
|
|
386
|
+ }
|
|
|
387
|
+ location =/sitemap.xml {
|
|
|
388
|
+ expires 1d;
|
|
|
389
|
+ }
|
|
|
390
|
+ location =/robots.txt {
|
|
|
391
|
+ expires 1d;
|
|
|
392
|
+ }
|
|
|
393
|
+}
|
|
|
394
|
+
|
|
|
395
|
+server
|
|
|
396
|
+{
|
|
|
397
|
+ listen 443;
|
|
|
398
|
+ server_name login.m.yohobuy.com cart.m.yohobuy.com;
|
|
|
399
|
+ ssl on;
|
|
|
400
|
+ ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
|
|
|
401
|
+ ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
|
|
|
402
|
+ root /Data/code/git/yohobuy/yohobuy/m.yohobuy.com/public;
|
|
|
403
|
+
|
|
|
404
|
+ location / {
|
|
|
405
|
+ proxy_redirect off;
|
|
|
406
|
+ proxy_pass http://yohobuy;
|
|
|
407
|
+ proxy_set_header Host $host;
|
|
|
408
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
409
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
410
|
+ proxy_set_header Accept-Encoding "gzip";
|
|
|
411
|
+ }
|
|
|
412
|
+
|
|
|
413
|
+ location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
|
|
|
414
|
+ expires 30d;
|
|
|
415
|
+ }
|
|
|
416
|
+ location =/crossdomain.xml {
|
|
|
417
|
+ expires 30d;
|
|
|
418
|
+ }
|
|
|
419
|
+ location =/sitemap.xml {
|
|
|
420
|
+ expires 1d;
|
|
|
421
|
+ }
|
|
|
422
|
+ location =/robots.txt {
|
|
|
423
|
+ expires 1d;
|
|
|
424
|
+ }
|
|
|
425
|
+}
|
367
|
|
426
|
|