Skip to content

Instantly share code, notes, and snippets.

@rshsmi
Created July 4, 2016 20:09
Show Gist options
  • Save rshsmi/a66525a4bf32c8ba3407b6394086e305 to your computer and use it in GitHub Desktop.
Save rshsmi/a66525a4bf32c8ba3407b6394086e305 to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy - Multiple Applications on One Domain
server {
listen ...;
...
location / {
proxy_pass http://127.0.0.1:8080;
}
location /blog {
proxy_pass http://127.0.0.1:8181;
}
location /mail {
proxy_pass http://127.0.0.1:8282;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment