Created
October 28, 2013 00:49
-
-
Save dr-dimitru/7189751 to your computer and use it in GitHub Desktop.
Simplest way for Nginx as Node.js 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
server { | |
listen 80; | |
server_name domain.com; | |
location / { | |
proxy_pass http://mystream; | |
proxy_set_header Host $http_host; | |
} | |
} | |
upstream mystream { | |
server __IP_ADDRESS_OF_YOUR_SERVER__:3000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment