Lines of
nginx.conf
from check-in 996aa0149d
that are changed by the sequence of edits moving toward
check-in 30e9655020:
1: # sample nginx config to serve the local site
2:
3: server {
4: listen *:80;
5: listen [fec0::1]:80;
6: server_name ^(?<domain>.+).hijack;
7: access_log /var/log/nginx/site_name.access.log;
8: error_log /var/log/nginx/site_name.error.log debug;
9: expires -1;
10: try_files $uri @break;
11: error_page 404 = @break;
12: log_not_found off;
13: # autoindex on;
14:
15: location / {
996aa0149d 2013-03-13 16: if ($request_method != HEAD) {
996aa0149d 2013-03-13 17: root /path/to/www/$domain;
996aa0149d 2013-03-13 18: }
19: }
20:
21: location @break {
22: # pointing out where our server listens
23: proxy_pass http://localhost:8008;
24: # saying that we downloading from real site
25: proxy_set_header Host $domain;
26: proxy_read_timeout 600;
27: }
28: }