Created
March 12, 2019 04:34
-
-
Save xeptore/20bf537ca851f8a7e5aed3178c106e7f to your computer and use it in GitHub Desktop.
Ngnix port proxy configuration
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
server { | |
# from port 80 | |
listen 80; | |
location / { | |
# to port 8000 on localhost | |
proxy_pass http://127.0.0.1:8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just a simple port proxy configuration passes requests from port 80 to 8000 on the same host.
see here for more detailed configuration.