Gentoo Archives: gentoo-server

From: Christian Spoo <mail@××××××××××××××.info>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] mysql not restarting
Date: Thu, 14 Sep 2006 00:38:19
Message-Id: 4508A3E3.5070407@christian-spoo.info
In Reply to: [gentoo-server] mysql not restarting by Darko Luketic
1 > p.s.: does anyone know of a namebased virtualhosting module or similar for apache2 that doesn't require a graceful apache2 restart?
2
3 You could redirect all requests of a certain domain by using
4 <VirtualHost IP:80>
5 ServerName *.domain.tld
6
7 (other options needed for your vhost)
8 </VirtualHost>
9
10 Then you could easily determine which of your "virtual" vhosts is
11 requested by using PHP. The current domainname is stored in the special
12 variable $_SERVER['HTTP_HOST'] (something like "subdomain.domain.tld").
13
14 Now you can decide what page to display. But please note that this
15 solution requires a PHP call for every file you serve (including CSS and
16 images). This may cause a significant performance impact because Apache
17 won't able to cache anything.

Attachments

File name MIME type
mail.vcf text/x-vcard
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-server] mysql not restarting Jonas Fietz <info@××××××××××.de>
Re: [gentoo-server] mysql not restarting Darko Luketic <webmaster@××××××××××××.com>