# Nginx.conf File too Large

**URL:** <https://www.ruby-forum.com/t/nginx-conf-file-too-large/209146>\
**Category:** NGINX\
**Created:** [July 6, 2011, 9:23pm UTC](https://www.ruby-forum.com/t/nginx-conf-file-too-large/209146 "2011-07-06T21:23:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 6, 2011, 9:23pm UTC](https://www.ruby-forum.com/t/nginx-conf-file-too-large/209146/1 "2011-07-06T21:23:36Z")

</div>

Hi Guys,

I am sorry to email this out but I put it on the forum and got nothing  
back  
back. I’m hoping someone may be able to give me a little advice.

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?

---

<div class="post-metadata">

**Author:** ![Rami\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f05b48/32.png) [@Rami\_E](https://www.ruby-forum.com/u/Rami_E)\
**Post date:** [July 6, 2011, 9:42pm UTC](https://www.ruby-forum.com/t/nginx-conf-file-too-large/209146/2 "2011-07-06T21:42:10Z")

</div>

On 7/6/11, Rami E. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?
