Showing
1 changed file
with
32 additions
and
1 deletions
@@ -128,5 +128,36 @@ http | @@ -128,5 +128,36 @@ http | ||
128 | #fastcgi cache | 128 | #fastcgi cache |
129 | #fastcgi_cache_path /nginxcache levels=1:2 keys_zone=two:10m inactive=1d max_size=3000m; | 129 | #fastcgi_cache_path /nginxcache levels=1:2 keys_zone=two:10m inactive=1d max_size=3000m; |
130 | #for example just for study! have fun! | 130 | #for example just for study! have fun! |
131 | - include vhosts/*.conf; | 131 | + |
132 | + server { | ||
133 | + listen 80; | ||
134 | + server_name 203.88.173.209; | ||
135 | + #access_log /Data/logs/nginx/access.log; | ||
136 | + #location ~* ^/url/([^\/]+)/(.+)$ { | ||
137 | + location ~* ^/url/(.+)$ { | ||
138 | + resolver 8.8.8.8; | ||
139 | + resolver_timeout 30s; | ||
140 | + | ||
141 | + #proxy_pass $scheme://$1/$2?$query_string; | ||
142 | + proxy_pass $scheme://$1?$query_string; | ||
143 | + } | ||
144 | + | ||
145 | + location ~* ^/url/us.asos.com { | ||
146 | + proxy_pass http://varnish; | ||
147 | + } | ||
148 | +} | ||
149 | + | ||
150 | +server { | ||
151 | + listen 8888; | ||
152 | + | ||
153 | + location / { | ||
154 | + resolver 8.8.8.8; | ||
155 | + resolver_timeout 30s; | ||
156 | + | ||
157 | + proxy_pass $scheme://$host$request_uri; | ||
158 | + proxy_set_header Host $http_host; | ||
159 | + } | ||
160 | + | ||
161 | +} | ||
162 | + | ||
132 | } | 163 | } |
-
Please register or login to post a comment