Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save eMahtab/65f6b74a29369aa273248937710be57a to your computer and use it in GitHub Desktop.

Select an option

Save eMahtab/65f6b74a29369aa273248937710be57a to your computer and use it in GitHub Desktop.
Setting NGINX as reverse proxy for multiple express application
server{
listen 80;
location / {
proxy_pass "http://127.0.0.1:3000";
}
location /codify {
rewrite ^/codify(.*) $1 break;
proxy_pass "http://127.0.0.1:3001";
}
location /linker {
rewrite ^/linker(.*) $1 break;
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