Gentoo Archives: gentoo-server

From: Darko Luketic <webmaster@××××××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] mysql not restarting
Date: Thu, 14 Sep 2006 02:15:53
Message-Id: 20060914041341.00001e77@jand
In Reply to: Re: [gentoo-server] mysql not restarting by Christian Spoo
1 On Thu, 14 Sep 2006 02:35:47 +0200
2 Christian Spoo <mail@××××××××××××××.info> wrote:
3
4 > > p.s.: does anyone know of a namebased virtualhosting module or similar for apache2 that doesn't require a graceful apache2 restart?
5 >
6 > You could redirect all requests of a certain domain by using
7 > <VirtualHost IP:80>
8 > ServerName *.domain.tld
9 >
10 > (other options needed for your vhost)
11 > </VirtualHost>
12 >
13 > Then you could easily determine which of your "virtual" vhosts is
14 > requested by using PHP. The current domainname is stored in the special
15 > variable $_SERVER['HTTP_HOST'] (something like "subdomain.domain.tld").
16 >
17 > Now you can decide what page to display. But please note that this
18 > solution requires a PHP call for every file you serve (including CSS and
19 > images). This may cause a significant performance impact because Apache
20 > won't able to cache anything.
21
22 yes, i learned about that like 2 months ago and i'm using it for another project.
23 but the current project is creating subdirs and linking the source dirs and files (by ln -s)
24 to that created dirs, the conf file in apache2's vhosts.d dir is created and a reloadme file, which
25 is checked by a compiled c binary for existence through cron, and does a graceful apache2 restart.
26 hmm, i've got an idea, thanks for reminding me :)
27
28 but apart from that , i've really searched alot and not found anything similar to
29 http://www.crazygreek.co.uk/content/mod_shapvh
30 for apache2 which could be used for different things , as described on the website in the above link.
31
32 --
33 Darko Luketic
34 webmaster@××××××××××××.com
35 --
36 gentoo-server@g.o mailing list