On Thu, 14 Sep 2006 02:35:47 +0200
Christian Spoo <[EMAIL PROTECTED]> wrote:

> > p.s.: does anyone know of a namebased virtualhosting module or similar for 
> > apache2 that doesn't require a graceful apache2 restart?
> 
> You could redirect all requests of a certain domain by using
> <VirtualHost IP:80>
>   ServerName *.domain.tld
> 
>  (other options needed for your vhost)
> </VirtualHost>
> 
> Then you could easily determine which of your "virtual" vhosts is
> requested by using PHP. The current domainname is stored in the special
> variable $_SERVER['HTTP_HOST'] (something like "subdomain.domain.tld").
> 
> Now you can decide what page to display. But please note that this
> solution requires a PHP call for every file you serve (including CSS and
> images). This may cause a significant performance impact because Apache
> won't able to cache anything.

yes, i learned about that like 2 months ago and i'm using it for another 
project.
but the current project is creating subdirs and linking the source dirs and 
files (by ln -s)
to that created dirs, the conf file in apache2's vhosts.d dir is created and a 
reloadme file, which
is checked by a compiled c binary for existence through cron, and does a 
graceful apache2 restart.
hmm, i've got an idea, thanks for reminding me :)

but apart from that , i've really searched alot and not found anything similar 
to
http://www.crazygreek.co.uk/content/mod_shapvh
for apache2 which could be used for different things , as described on the 
website in the above link.

-- 
Darko Luketic
[EMAIL PROTECTED]
-- 
[email protected] mailing list

Reply via email to