nginx.conf File too Large

Alexandr Gomoliako zzz at
Wed Jul 6 23:41:49 MSD 2011

On 7/6/11, Rami Essaid <rami.essaid at> wrote:
> We are trying to use nginx as a reverse proxy for a large number of sites
> and putting up a lot of rules to direct and traffic for each host. Is there
> a number of hosts ({server}) that would be too many for a single nginx
> instance to support? At what point does the configuration file get too large
> and start bogging down the nginx server? Currently each host takes up about
> 150 lines, and we are looking to put in 25+ hosts onto each server. I wanted
> to know if this realistic?

It doesn't sound like an nginx problem. Nginx usually suggests what to
change if it hits the limit. Can you show us the exact error message?

More information about the nginx mailing list