httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathijs Maassen <math...@xs4all.nl>
Subject Re: standard virtual hosting.. how good?
Date Fri, 11 Jun 1999 12:50:33 GMT
On Fri, Jun 11, 1999 at 01:06:10PM +0100, Tony Finch wrote:
> We have some machines with about 1000 <VirtualHost> configuration
> sections and one of the problems it the time it takes to parse the
> configuration file (but that's an old version of Apache & newer ones

We had the same problem. Apache does a stat() on the DocumentRoot of all
vhosts. And that slows things down a bit if you have lots of vhosts. The
attached patch adds a DocumentrootCheck config option, which enables you to
turn this behaviour off. The startuptime on one of our webservers, with 4000
vhosts, dropped from 3 minutes minutes to 2 seconds.

Mathijs

-- 
/* Mathijs Maassen <mathijs@xs4all.nl> */ main()??<long x,y??(??)
=??<0xEE4A4AA,0x8A4A4AA,0xE84E4EE,0x284A4AE,0xE84AEEA??>,z=5;for(
;z--;)for(x=1;x<<=1;)putchar(x*2?y??(z??)&x?'??=':' ':'??/n');??>

Mime
View raw message