Re: Apache Virtual Hosts Local Machine Help

From: Date: Tue, 23 Jul 2002 02:57:57 +0000
Subject: Re: Apache Virtual Hosts Local Machine Help
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14912@lists.php.net to get a copy of this message
In the host just add new entries like this: 127.0.0.1 localhost 127.0.0.1 exampleone.com 127.0.0.1 exampletwo.com Then in the apache config you add: NameVirtualHost * <VirtualHost *> ServerAdmin a@b.com DocumentRoot E:/sites/exampleone ServerName exampleone ErrorLog logs/exampleone-error_log CustomLog logs/exampleone-access_log common </VirtualHost> <VirtualHost *> ServerAdmin a@b.com DocumentRoot E:/sites/exampletwo ServerName exampletwo ErrorLog logs/ exampletwo-error_log CustomLog logs/ exampletwo-access_log common </VirtualHost> Of notice is the sensitivity of apache config to the / and \... in some places one works in others you must use the other... you can play arround with the * and the servernames in both the generic directive or the specific virtualhost servernames... however, you must have at least one of the virtual hosts to answer for the namevirtualhost... Cheers, Luis Ferro P.S.- don't forget to change the php.ini directories also, specially the include defaults... that give me much headaches...

« previous php.windows (#14912) next »