Authored by whb

pc的nginx配置

@@ -79,6 +79,32 @@ server @@ -79,6 +79,32 @@ server
79 proxy_set_header Accept-Encoding "gzip"; 79 proxy_set_header Accept-Encoding "gzip";
80 } 80 }
81 81
  82 + location ^~ /cart/index {
  83 + proxy_redirect off;
  84 + proxy_pass http://yohobuy-pc;
  85 + proxy_set_header Host $host;
  86 + proxy_set_header X-Real-IP $remote_addr;
  87 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  88 + proxy_set_header Accept-Encoding "gzip";
  89 + }
  90 + location ^~ /shopping/cart {
  91 + proxy_redirect off;
  92 + proxy_pass http://yohobuy-pc;
  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 ^~ /product/show_ {
  100 + proxy_redirect off;
  101 + proxy_pass http://yohobuy-pc;
  102 + proxy_set_header Host $host;
  103 + proxy_set_header X-Real-IP $remote_addr;
  104 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  105 + proxy_set_header Accept-Encoding "gzip";
  106 + }
  107 +
82 # 其它默认 108 # 其它默认
83 location / { 109 location / {
84 proxy_redirect off; 110 proxy_redirect off;