Welcome! Log In Create A New Profile

Advanced

reverse prox error page/logging when upstream server is having problems

David Taveras
February 14, 2010 12:26AM
Hello,

I have a reverse proxy up and would like to replace the 504 Gateway
timeout with an error page.

I saw that we have these options when doing loadbalancing:

proxy_next_upstream error timeout invalid_header;

## Backend servers (web1 is the primary and web2 will come up if web1 is down)
upstream webbackend {
server web1.domain.lan weight=10 max_fails=3 fail_timeout=30s;
server web2.domain.lan weight=1 backup;
}


When I have a single backend server (do not deploy load balancing)
What is the best way to redirect those cases (error timeout
invalid_header) to error pages , and also a log?

Is there any other possible error that iam missing that would
indicate problems with the backend server?

Thanks

David

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

reverse prox error page/logging when upstream server is having problems

David Taveras February 14, 2010 12:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready