Last active
February 23, 2024 03:01
-
-
Save ysmood/292be6bc5c8e01a54e7202b3afd79f04 to your computer and use it in GitHub Desktop.
nginx minimal reverse proxy config
This file contains 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