Thank you, Ruslan.
> How about mapping $server_name to upstream instead?
>
> map $server_name $upstream {
> default ...;
> [100k entries]
> }
>
> server {
> ...
> proxy_pass http://$upstream;
> ...
> }
It works if I use simple upstream like url:80, but still very slow
when usi
On Fri, Aug 09, 2013 at 01:41:49PM +0800, Anb wrote:
> Hi there,
> I got a problem when using nginx as a reverse proxy. Configurations
> using per server policy to set upstream host. Nginx spends significant
> time loading config files as while as virtual server inscreased to a
> large number. He
Hi there,
I got a problem when using nginx as a reverse proxy. Configurations
using per server policy to set upstream host. Nginx spends significant
time loading config files as while as virtual server inscreased to a
large number. Here's a rough statistics:
| server sections | load time(sec) |