Lines of
nginx.conf
from check-in 95fc83d16a
that are changed by the sequence of edits moving toward
check-in 2af344df7b:
1: # sample nginx config to serve the local site
2:
3: server {
4: listen *:80;
5: listen [fec0::1]:80;
6: server_name site.to.hijack;
7: access_log /var/log/nginx/site_name.access.log;
8: error_log /var/log/nginx/site_name.error.log debug;
95fc83d16a 2012-01-20 9: # if no file found locally we are breaking connection
95fc83d16a 2012-01-20 10: # helps with clients that treat 404 as general error
11: expires -1;
12: try_files $uri @break;
13: error_page 404 = @break;
14: log_not_found off;
15: # autoindex on;
16:
17: location / {
18: if ($request_method != HEAD) {
95fc83d16a 2012-01-20 19: root /home/arcade/www/windowsupdate;
20: }
21: }
22:
23: location @break {
24: proxy_pass http://localhost:8008;
95fc83d16a 2012-01-20 25: proxy_set_header Host download.windowsupdate.com;
26: proxy_read_timeout 600;
27: }
28: }