RE: [PHP-WIN] multiple root paths with Apache
| From: | Ignatius Teo | Date: | Sat, 17 Mar 2001 04:11:34 +0000 |
| Subject: | RE: [PHP-WIN] multiple root paths with Apache | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6111@lists.php.net to get a copy of this message | ||
You can setup multiple virtual hosts, and also multiple IPs on a Windoze
box.
You need to modify your C:\WINDOWS\HOSTS file eg.
127.0.0.1 localhost
127.0.0.2 mydomain mydomain.com mydomain.net
127.0.0.3 another-domain another-domain.com
Then in you HTTP.CONF file:
<VirtualHost 127.0.0.1>
DocumentRoot "C:/inetpub/wwwroot/"
ServerName localhost
ServerAlias localhost
</VirtualHost>
<VirtualHost 127.0.0.2>
DocumentRoot "C:/inetpub/wwwroot/mydomain"
ServerName mydomain
ServerAlias mydomain.com mydomain.net
</VirtualHost>
etc...
See the Apache doco for more info....
Ignatius
> -----Original Message-----
> From: Damien du Toit [mailto:damien@generator.co.za]
> Sent: Friday, 16 March 2001 18:25
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] multiple root paths with Apache
>
>
> Is it at all possible to create multiple ("virtual") root paths
> on a single
> Apache installation? I have seperate folders for the different sites I am
> concurrently developing and would like to have each as it's own root for
> the site files that it contains, because I am referencing my code
> from the
> root.. ie.
> <a href="/blah.html">
> <img src="/blah.gif">
>
> It doesn't sound logical that you could, so if not possible, are
> there any
> alternative solutions to accomplish this?
> I am running Win2000.
> Thanks
>
>
> Damien du Toit
> New Media Programmer
>
> tel +27 21 425 9710
> fax +27 21 425 9713
>
> GENERATOR COMMUNICATIONS | BE AN ISLAND
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>