Created
April 20, 2012 10:31
-
-
Save wdalmut/2427682 to your computer and use it in GitHub Desktop.
Nginx configuration with proxy pass...
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 localhost; | |
error_page 404 = @fallback; | |
error_page 400 = @fallback; | |
proxy_intercept_errors on; | |
location / { | |
proxy_pass http://localhost:8080; | |
} | |
location @fallback { | |
proxy_pass http://localhost:8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment