Skip to content

Instantly share code, notes, and snippets.

@wdalmut
Created April 20, 2012 10:31
Show Gist options
  • Save wdalmut/2427682 to your computer and use it in GitHub Desktop.
Save wdalmut/2427682 to your computer and use it in GitHub Desktop.
Nginx configuration with proxy pass...
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