Skip to content

Instantly share code, notes, and snippets.

@eMahtab
Created December 27, 2016 10:37
Show Gist options
  • Select an option

  • Save eMahtab/82094cfa074210216b84eb4a7162c8aa to your computer and use it in GitHub Desktop.

Select an option

Save eMahtab/82094cfa074210216b84eb4a7162c8aa to your computer and use it in GitHub Desktop.
Configuring multiple sites reverse proxy with nginx
server{
listen 80;
server_name mahtabalam.net;
location / {
proxy_pass "http://127.0.0.1:3000";
}
}
server{
listen 80;
server_name kazan.travel;
location / {
proxy_pass "http://127.0.0.1:3001";
}
}
server{
listen 80;
server_name daniel.io;
location / {
proxy_pass "http://127.0.0.1:3002";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment