Skip to content

Instantly share code, notes, and snippets.

@WhyNotHugo
Created May 20, 2014 04:26
Show Gist options
  • Save WhyNotHugo/05df27cd5ccbce27e096 to your computer and use it in GitHub Desktop.
Save WhyNotHugo/05df27cd5ccbce27e096 to your computer and use it in GitHub Desktop.
Minimal nginx proxy example
server {
listen 8080;
server_name example.barrera.io;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/htdocs;
}
location / {
proxy_pass http://localhost:8080;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment