Module vars set inside if's are not set
Mark Maunder
mark at feedjit.com
Wed Nov 25 01:22:37 MSK 2009
Igor Sysoev wrote:
> The "if" block is ugly hack inside nginx. This is the cause.
>
>
That's sad because it's also nginx.conf's most useful feature. e.g.
if ($request_uri ~* '^/chatSub/(\d+)/$') {
set $backEndDigit $1;
}
proxy_pass http://10.1.0.$backEndDigit:80/someUrl/:
I run this in production with over 30,000 concurrent connections on the
nginx front end. nginx.conf laughs at apache2.conf and hits on it's
girlfriend.
Mark.
More information about the nginx
mailing list