Last active
December 31, 2015 13:39
-
-
Save max107/7993907 to your computer and use it in GitHub Desktop.
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 { | |
access_log "/home/something/something.info/log/nginx-access.log"; | |
error_log "/home/something/something.info/log/nginx-error.log"; | |
listen 80; | |
server_name something.info www.something.info; | |
include drop.conf; | |
if ($host = 'www.something.info' ) { | |
rewrite ^ http://something.info$uri permanent; | |
} | |
location / { | |
uwsgi_pass unix:///home/something/something.info/tmp/uwsgi.sock; | |
include proxy.conf; | |
include uwsgi_params; | |
} | |
location ~ ^/(robots.txt|favicon.ico|favicon.png|static|media) { | |
root /home/something/something.info/app/; | |
access_log off; | |
log_not_found off; | |
expires max; | |
try_files $uri @404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment