Skip to content

Instantly share code, notes, and snippets.

@m0zgen
Forked from ysmood/nginx.minimal.conf
Created June 19, 2022 11:37
Show Gist options
  • Save m0zgen/7cc5a5e25be14fabe9f52caa5213bee6 to your computer and use it in GitHub Desktop.
Save m0zgen/7cc5a5e25be14fabe9f52caa5213bee6 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