Skip to content

Instantly share code, notes, and snippets.

@fabianogoes
Last active August 29, 2015 14:04
Show Gist options
  • Save fabianogoes/05547adf9cf0748c6998 to your computer and use it in GitHub Desktop.
Save fabianogoes/05547adf9cf0748c6998 to your computer and use it in GitHub Desktop.
nginx-virtualhost
server {
listen 8000;
location /static/ {
autoindex on;
alias /deploy/managercon/system/static/;
expires 30d;
}
location / {
proxy_pass_header Server;
proxy_set_header Host $http_addr;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout 30;
proxy_read_timeout 20;
proxy_pass http://127.0.0.1:8001;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment