Authored by hf

code review by hf: do add 99click partner analysis code and add login,cart to support https config

@@ -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
@@ -453,3 +453,35 @@ server @@ -453,3 +453,35 @@ server
453 expires 1d; 453 expires 1d;
454 } 454 }
455 } 455 }
  456 +
  457 +server
  458 +{
  459 + listen 443;
  460 + server_name login.m.yohobuy.com cart.m.yohobuy.com;
  461 + ssl on;
  462 + ssl_certificate /Data/local/nginx-1.8.0/ssl/server.crt;
  463 + ssl_certificate_key /Data/local/nginx-1.8.0/ssl/server.key;
  464 + root /Data/PE/yohobuy/yohobuy/m.yohobuy.com/public;
  465 +
  466 + location / {
  467 + proxy_redirect off;
  468 + proxy_pass http://yohobuy;
  469 + proxy_set_header Host $host;
  470 + proxy_set_header X-Real-IP $remote_addr;
  471 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  472 + proxy_set_header Accept-Encoding "gzip";
  473 + }
  474 +
  475 + location ~* \.(ico|woff|svg|eot|ttf|otf)$ {
  476 + expires 30d;
  477 + }
  478 + location =/crossdomain.xml {
  479 + expires 30d;
  480 + }
  481 + location =/sitemap.xml {
  482 + expires 1d;
  483 + }
  484 + location =/robots.txt {
  485 + expires 1d;
  486 + }
  487 +}