|
|
@ -26,7 +26,7 @@ http { |
|
|
|
gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png; |
|
|
|
gzip_vary on; |
|
|
|
gzip_disable "MSIE [1-6]\."; |
|
|
|
upstream zhucheng { |
|
|
|
upstream huatao-spc { |
|
|
|
server localhost:28019 weight=10 max_fails=3 fail_timeout=10s; |
|
|
|
} |
|
|
|
server { |
|
|
@ -34,7 +34,7 @@ http { |
|
|
|
server_name_in_redirect off; |
|
|
|
server_name dev.ccwin-in.com; |
|
|
|
location /api/ { |
|
|
|
proxy_pass http://zhucheng/; |
|
|
|
proxy_pass http://huatao-spc/; |
|
|
|
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; |
|
|
|
proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for; |
|
|
|
proxy_set_header Host $http_host; |
|
|
@ -53,7 +53,7 @@ http { |
|
|
|
proxy_cache_valid 200 304 12h; |
|
|
|
proxy_cache_key $host$uri$is_args$args; |
|
|
|
try_files $uri $uri/ /index.html; |
|
|
|
root /opt/zhucheng; |
|
|
|
root /opt/huatao-spc; |
|
|
|
index index.html index.htm; |
|
|
|
} |
|
|
|
} |
|
|
|