...
|
...
|
@@ -112,10 +112,7 @@ http |
|
|
fastcgi_temp_path /dev/shm/fastcgi_temp;
|
|
|
client_body_temp_path /dev/shm/client_body_temp;
|
|
|
|
|
|
#upstream web
|
|
|
upstream varnish {
|
|
|
server 127.0.0.1:8081 weight=6 max_fails=2 fail_timeout=5s;
|
|
|
}
|
|
|
|
|
|
|
|
|
#upstream
|
|
|
fastcgi_next_upstream error timeout invalid_header http_500;
|
...
|
...
|
@@ -131,7 +128,6 @@ http |
|
|
|
|
|
server {
|
|
|
listen 80;
|
|
|
server_name 203.88.173.209;
|
|
|
#access_log /Data/logs/nginx/access.log;
|
|
|
#location ~* ^/url/([^\/]+)/(.+)$ {
|
|
|
location ~* ^/url/(.+)$ {
|
...
|
...
|
@@ -145,9 +141,9 @@ http |
|
|
location ~* ^/url/us.asos.com {
|
|
|
proxy_pass http://varnish;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
server {
|
|
|
server {
|
|
|
listen 8888;
|
|
|
|
|
|
location / {
|
...
|
...
|
@@ -158,6 +154,5 @@ server { |
|
|
proxy_set_header Host $http_host;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
} |
...
|
...
|
|