Skip to content

Instantly share code, notes, and snippets.

@max107
Last active December 31, 2015 13:39
Show Gist options
  • Save max107/7993907 to your computer and use it in GitHub Desktop.
Save max107/7993907 to your computer and use it in GitHub Desktop.
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