Skip to content

Instantly share code, notes, and snippets.

@purem
Created September 21, 2011 14:13
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 purem/1232133 to your computer and use it in GitHub Desktop.
Save purem/1232133 to your computer and use it in GitHub Desktop.
upstream backend {
server 127.0.0.1:3031;
}
server {
listen 8080;
root /home/vagrant/apps/jame2/static;
gzip on; gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss application/octet-stream text/javascript
gzip_disable "MSIE [1-6]\.";
location = /jame2 {
rewrite ^ /jame2/;
}
location /jame2 {
try_files $uri $uri/ @jame2;
alias /home/vagrant/apps/jame2/static/;
}
location @jame2
{
include uwsgi_params;
uwsgi_pass backend;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment