Skip to content

Instantly share code, notes, and snippets.

@xeptore
Created March 12, 2019 04:34
Show Gist options
  • Save xeptore/20bf537ca851f8a7e5aed3178c106e7f to your computer and use it in GitHub Desktop.
Save xeptore/20bf537ca851f8a7e5aed3178c106e7f to your computer and use it in GitHub Desktop.
Ngnix port proxy configuration
server {
# from port 80
listen 80;
location / {
# to port 8000 on localhost
proxy_pass http://127.0.0.1:8000;
}
}
@xeptore
Copy link
Author

xeptore commented Mar 12, 2019

just a simple port proxy configuration passes requests from port 80 to 8000 on the same host.
see here for more detailed configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment