Re: map module - mass hosting

2014-04-24 Thread beatnut
Thank You for explanation and advise. Maxim Dounin Wrote: --- Hello! On Wed, Apr 23, 2014 at 09:27:33AM -0400, beatnut wrote: [...] Searching within a map is basically identical to searching for appropriate server{} block, both

Re: map module - mass hosting

2014-04-23 Thread Maxim Dounin
Hello! On Wed, Apr 23, 2014 at 08:07:42AM -0400, beatnut wrote: I'd like to use map module for my vhost configuration to setup user name in root or fastcgi_pass parameter. At this point i've 300 domains configured and my config look like this: http { server { ..

Re: map module - mass hosting

2014-04-23 Thread beatnut
Thank You for answer. I've additional questions. Maxim Dounin Wrote: --- Hello! On Wed, Apr 23, 2014 at 08:07:42AM -0400, beatnut wrote: I'd like to use map module for my vhost configuration to setup user name in root or fastcgi_pass

Re: map module - mass hosting

2014-04-23 Thread Maxim Dounin
Hello! On Wed, Apr 23, 2014 at 09:27:33AM -0400, beatnut wrote: [...] Searching within a map is basically identical to searching for appropriate server{} block, both use the same internal mechanism (ngx_hash). As long as you don't use regular expressions, lookup complexity is O(1).