Created
November 28, 2012 12:59
-
-
Save skyrocknroll/4161092 to your computer and use it in GitHub Desktop.
nginx Config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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