Max virtualhosts

Hi !

I was wondering, for the sake of curiosity, how many server blocks
(virtual
hosts) nginx can afford ?

To the extreme : will 1000 server blocks will decrease nginx
performances ?

Cheers,

Larry

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237702,237702#msg-237702

On Mar 23, 2013, at 14:14 , Larry wrote:

Hi !

I was wondering, for the sake of curiosity, how many server blocks (virtual
hosts) nginx can afford ?

To the extreme : will 1000 server blocks will decrease nginx performances ?

No. Unless server_names are regular expressions.


Igor S.
http://nginx.com/services.html

Many thanks to both of you, you made my day :slight_smile:

Larry

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,237702,237743#msg-237743

On Sat, Mar 23, 2013 at 02:50:08PM +0400, Igor S. wrote:

On Mar 23, 2013, at 14:14 , Larry wrote:

I was wondering, for the sake of curiosity, how many server blocks (virtual
hosts) nginx can afford ?

To the extreme : will 1000 server blocks will decrease nginx performances ?

No. Unless server_names are regular expressions.

To elaborate more on this, here’s why:
http://nginx.org/en/docs/hash.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs