Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Created August 7, 2012 09:36
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 AndrewIngram/3283867 to your computer and use it in GitHub Desktop.
Save AndrewIngram/3283867 to your computer and use it in GitHub Desktop.
nginx config
server {
listen 80;
client_max_body_size 4G;
server_name andrewingram.net localhost 127.0.0.1;
gzip on;
gzip_proxied any;
gzip_types text/plain application/xml application/x-javascript text/javascript text/css;
keepalive_timeout 5;
root /var/www/empty;
location /static {
alias /var/www/andrewingram.net/src/andrewingram/andrewingram/static;
}
location /media {
alias /var/www/andrewingram.net/media;
}
location / {
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header Host $http_host;
#proxy_redirect off;
#proxy_pass http://127.0.0.1:8000;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9090;
}
error_page 500 502 503 504 /500.html;
location = /500.html {
root /var/www/andrewingram.net/src/andrewingram/andrewingram/public;
}
}
server {
listen 80;
server_name www.andrewingram.net;
rewrite ^(.*) http://andrewingram.net$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment