Index: nginx.conf ================================================================== --- nginx.conf +++ nginx.conf @@ -6,16 +6,23 @@ server_name site.to.hijack; access_log /var/log/nginx/site_name.access.log; error_log /var/log/nginx/site_name.error.log debug; # if no file found locally we are breaking connection # helps with clients that treat 404 as general error + expires -1; + try_files $uri @break; error_page 404 = @break; + log_not_found off; + # autoindex on; location / { - root /path/to/www/site_name/; - autoindex on; + if ($request_method != HEAD) { + root /home/arcade/www/windowsupdate; + } } location @break { - return 444; + proxy_pass http://localhost:8008; + proxy_set_header Host download.windowsupdate.com; + proxy_read_timeout 600; } }