Skip to content

Instantly share code, notes, and snippets.

@ysmood
Last active February 23, 2024 03:01
Show Gist options
  • Save ysmood/292be6bc5c8e01a54e7202b3afd79f04 to your computer and use it in GitHub Desktop.
Save ysmood/292be6bc5c8e01a54e7202b3afd79f04 to your computer and use it in GitHub Desktop.
nginx minimal reverse proxy config
events {}
http {
server {
listen 8080;
server_name a.com;
location / {
proxy_pass http://127.0.0.1:8888;
}
}
server {
listen 8080;
server_name b.com;
location / {
proxy_pass http://127.0.0.1:7777;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment