Created
February 8, 2013 21:48
-
-
Save tleen/4742207 to your computer and use it in GitHub Desktop.
sample nginx to node
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 *:8080; | |
server_name myproject.com; | |
location / { | |
root /usr/share/nginx/myproject/static; | |
try_files $uri @app; | |
} | |
location @app{ | |
proxy_pass http://localhost:10080; | |
proxy_set_header Host $http_host; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment