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:

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.

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

Larry

Posted at Nginx Forum:

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