httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hicks <johnl...@gulfbridge.net>
Subject Re: [users@httpd] seperate vhost files for each domain
Date Wed, 25 Jun 2008 14:24:30 GMT
Agnello George wrote:
> Hi
> I would just like to know if it would be a good good option to have
> separate vhost fies for each domain, this would make editing the files
> ( through shell scripts much easier ). But my only concern here is
> would Apache be overloaded by reading multiple vhost files
> to illustrate i would like to have something like  this :
>
> in my httpd.conf flile
> # Virtual hosts
> Include conf/extra/httpd_vhost/
>
> then i the following dir ( /usr/local/apache2/conf/extra/httpd_vhost/
> ) i will have :
>
> domain1_vhost.conf
> domain2_vhsot.conf
> domain3_vhost.conf ............
> ..............................
> ..............................
>
> this would make editing of a particular file much easy  through shell
> script instead do  having all the directives in one httpd_vhost.conf
>   

This should work just fine. The Ubuntu Linux distribution comes with the 
Apache configuration set up with multiple files in a similar manner.

Remember that Apache only reads its configuration once, when it is 
started up, so the additional processing is minimal.

- John Hicks

Mime
View raw message