Welcome! Log In Create A New Profile

Advanced

Re: Server won't start AND Nginx as reverse proxy

Reinis Rozitis
January 24, 2013 12:30PM
> 2- Nginx does not reverse proxy new incoming requests to one of the other
> Swazoo web servers and the site appears to be 'hanging'. Any help on this?

The default proxy module timeouts are pretty high (like 60s)

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout

... so naturally if the backend doesnt respond in timely matter it can take
up to a minute for nginx to decide what to do next.


I would also rather than using (with dns resolve):

location / {
proxy_pass https://some.site.com;
}


choose the upstream module (
http://nginx.org/en/docs/http/ngx_http_upstream_module.html ) and define all
the backends in the upstream {} block:

upstream someservers {
server your.backend1.ip:80;
server your.backend2.ip:80;
server your.backend2.ip:80;
}

location / {
proxy_pass http://someservers;
}



rr

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

Server won't start AND Nginx as reverse proxy

pieter@lxnex.com January 03, 2013 08:49AM

Re: Server won't start AND Nginx as reverse proxy

pieter@lxnex.com January 24, 2013 07:31AM

Re: Server won't start AND Nginx as reverse proxy

António P. P. Almeida January 24, 2013 07:58AM

Re: Server won't start AND Nginx as reverse proxy

Reinis Rozitis January 24, 2013 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 8 on December 15, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready