Authored by chunhua.zhang

Update nginx.conf

... ... @@ -100,7 +100,7 @@ http
#proxy_temp_path /dev/shm/proxy_temp;
proxy_temp_path /Data/local/nginx-1.8.0/ngx_temp_dir;
proxy_cache_path /Data/local/nginx-1.8.0/ngx_cache levels=1:2 keys_zone=cache_one:500m inactive=1d max_size=10g;
proxy_cache_path /Data/local/nginx-1.8.0/ngx_cache levels=1:2 keys_zone=cache_one:500m inactive=1d max_size=10g;
proxy_connect_timeout 5;
proxy_read_timeout 60;
proxy_send_timeout 5;
... ... @@ -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;
... ... @@ -128,26 +125,25 @@ http
#fastcgi cache
#fastcgi_cache_path /nginxcache levels=1:2 keys_zone=two:10m inactive=1d max_size=3000m;
#for example just for study! have fun!
server {
listen 80;
server_name 203.88.173.209;
#access_log /Data/logs/nginx/access.log;
#location ~* ^/url/([^\/]+)/(.+)$ {
location ~* ^/url/(.+)$ {
location ~* ^/url/(.+)$ {
resolver 8.8.8.8;
resolver_timeout 30s;
#proxy_pass $scheme://$1/$2?$query_string;
proxy_pass $scheme://$1?$query_string;
}
}
location ~* ^/url/us.asos.com {
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;
}
}
}
}
... ...