-
-
Save m0zgen/7cc5a5e25be14fabe9f52caa5213bee6 to your computer and use it in GitHub Desktop.
nginx minimal reverse proxy config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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