Created
March 30, 2012 18:18
-
-
Save javierwilson/2253658 to your computer and use it in GitHub Desktop.
configuracion nginx para proyecto django (gunicorn)
This file contains hidden or 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 192.168.1.1:80; | |
server_name example.com; | |
root /var/www/example/static; | |
access_log /var/log/nginx/example-access.log; | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location /media { | |
root /var/www/example/; | |
} | |
location /static { | |
root /var/www/example/; | |
access_log off; | |
} | |
location / { | |
proxy_pass_header Server; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header X-Scheme $scheme; | |
proxy_connect_timeout 10; | |
proxy_read_timeout 10; | |
proxy_pass http://127.0.0.1:8888/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment