08ae38b6ce 2010-06-25 1: # sample nginx config to serve the local site
08ae38b6ce 2010-06-25 2:
08ae38b6ce 2010-06-25 3: server {
08ae38b6ce 2010-06-25 4: listen *:80;
08ae38b6ce 2010-06-25 5: listen [fec0::1]:80;
08ae38b6ce 2010-06-25 6: server_name site.to.hijack;
08ae38b6ce 2010-06-25 7: access_log /var/log/nginx/site_name.access.log;
08ae38b6ce 2010-06-25 8: error_log /var/log/nginx/site_name.error.log debug;
08ae38b6ce 2010-06-25 9: # if no file found locally we are breaking connection
08ae38b6ce 2010-06-25 10: # helps with clients that treat 404 as general error
08ae38b6ce 2010-06-25 11: error_page 404 = @break;
08ae38b6ce 2010-06-25 12:
08ae38b6ce 2010-06-25 13: location / {
08ae38b6ce 2010-06-25 14: root /path/to/www/site_name/;
08ae38b6ce 2010-06-25 15: autoindex on;
08ae38b6ce 2010-06-25 16: }
08ae38b6ce 2010-06-25 17:
08ae38b6ce 2010-06-25 18: location @break {
08ae38b6ce 2010-06-25 19: return 444;
08ae38b6ce 2010-06-25 20: }
08ae38b6ce 2010-06-25 21: }