Created
December 4, 2012 21:06
-
-
Save TheRightChoyce/4208678 to your computer and use it in GitHub Desktop.
Basic nginx configuration to run a node server internally on port 3000
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
| # | |
| # Basic nginx config for a node.js server | |
| server { | |
| root /var/www; | |
| index example.js; | |
| server_name localhost; | |
| location / { | |
| proxy_pass http://127.0.0.1:3000; | |
| expires 30d; | |
| access_log off; | |
| } | |
| location /content { # if you want to serve static content | |
| root /var/www/content; | |
| autoindex off; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment