Permalink
Browse files

Fixed upstream proxy handling

  • Loading branch information...
1 parent 5159658 commit 595ac91f9ef0f0587e03fa74376e8f3dfb270d76 @ivanvanderbyl committed Sep 6, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 nginx/upstream_proxy_vhost.common.erb
@@ -5,8 +5,10 @@ if ($host !~ ^<%= domain.to_s.gsub('.', '\.') %>$) {
}
location / {
- proxy_pass http://backend_<%= proxy_name %>;
- proxy_redirect off;
+ proxy_pass http://backend_<%= proxy_name %>;
+ proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_404;
+ proxy_pass_request_headers on;
+ proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

0 comments on commit 595ac91

Please sign in to comment.