httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathijs Maassen <>
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 Maassen <> */ main()??<long x,y??(??)
;z--;)for(x=1;x<<=1;)putchar(x*2?y??(z??)&x?'??=':' ':'??/n');??>

View raw message