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:[EMAIL PROTECTED]]
> Sent: Friday, 16 March 2001 18:25
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]