08ae38b6ce 2010-06-25 c.kworr@b84a3: # sample nginx config to serve the local site
08ae38b6ce 2010-06-25 c.kworr@b84a3:
08ae38b6ce 2010-06-25 c.kworr@b84a3: server {
08ae38b6ce 2010-06-25 c.kworr@b84a3: listen *:80;
08ae38b6ce 2010-06-25 c.kworr@b84a3: listen [fec0::1]:80;
08ae38b6ce 2010-06-25 c.kworr@b84a3: server_name site.to.hijack;
08ae38b6ce 2010-06-25 c.kworr@b84a3: access_log /var/log/nginx/site_name.access.log;
08ae38b6ce 2010-06-25 c.kworr@b84a3: error_log /var/log/nginx/site_name.error.log debug;
08ae38b6ce 2010-06-25 c.kworr@b84a3: # if no file found locally we are breaking connection
08ae38b6ce 2010-06-25 c.kworr@b84a3: # helps with clients that treat 404 as general error
08ae38b6ce 2010-06-25 c.kworr@b84a3: error_page 404 = @break;
08ae38b6ce 2010-06-25 c.kworr@b84a3:
08ae38b6ce 2010-06-25 c.kworr@b84a3: location / {
08ae38b6ce 2010-06-25 c.kworr@b84a3: root /path/to/www/site_name/;
08ae38b6ce 2010-06-25 c.kworr@b84a3: autoindex on;
08ae38b6ce 2010-06-25 c.kworr@b84a3: }
08ae38b6ce 2010-06-25 c.kworr@b84a3:
08ae38b6ce 2010-06-25 c.kworr@b84a3: location @break {
08ae38b6ce 2010-06-25 c.kworr@b84a3: return 444;
08ae38b6ce 2010-06-25 c.kworr@b84a3: }
08ae38b6ce 2010-06-25 c.kworr@b84a3: }