Authored by chunhua.zhang

Update nginx.conf

... ... @@ -128,5 +128,36 @@ 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!
include vhosts/*.conf;
server {
listen 80;
server_name 203.88.173.209;
#access_log /Data/logs/nginx/access.log;
#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 {
proxy_pass http://varnish;
}
}
server {
listen 8888;
location / {
resolver 8.8.8.8;
resolver_timeout 30s;
proxy_pass $scheme://$host$request_uri;
proxy_set_header Host $http_host;
}
}
}
... ...