Welcome! Log In Create A New Profile

Advanced

reverse proxy https->http and resource/connection protection

Arjan Filius
November 29, 2010 09:26AM
Hello nginx users,

Like to have one IP with reverse proxy (https->http) site,
using wildchard certificates (multiple virtual hosts on one IP and
using different upstreams for different subdomains.

Currently implemented in a testcase like:

location / {
if ($http_host = urla.domain.com ) {
proxy_pass http://urla.domain;
break;
}

if ($http_host = urlb.domain.com ) {
proxy_pass http://urlb.domain.com;
break;
}

}

and works fine (functional) not tested in production yet.

Using different upstreams i'm worried if one upstream fails or might get
overloaded in a terrible way (say urla), the other upstream (say urlb)
wil eventualy fail as wel, as nginx may use up all it's resources for the problem upstream.

For that i'd like to limit the max connections on a subdomain, and i'm
not seeing yet how to do that.
I can limit the complete server {} definition using limit_conn for
example, but that doesn't exacly cover this case.

How would one do that? splitting the servers definition, and using up
extra IP's ?

Thanks in advance,

Regards,

--
Arjan Filius
mailto:iafilius@xs4all.nl

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

reverse proxy https->http and resource/connection protection

Arjan Filius November 29, 2010 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
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