Created
September 21, 2011 14:13
-
-
Save purem/1232133 to your computer and use it in GitHub Desktop.
This file contains 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
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