Skip to content

Instantly share code, notes, and snippets.

@skyrocknroll
Created November 28, 2012 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyrocknroll/4161092 to your computer and use it in GitHub Desktop.
Save skyrocknroll/4161092 to your computer and use it in GitHub Desktop.
nginx Config file
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/localhost.access.log;
root /uploads;
index index.html index.htm;
if_modified_since before; #if modified header
# Make site accessible from http://localhost/
server_name localhost;
client_max_body_size 2048m;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
autoindex on;
if ($request_method = POST)
{
proxy_pass http://127.0.0.1:8080;
}
#try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment