Hi Mike,

Try doing it like this:

NameVirtualHost dev.intranet:80
<VirtualHost dev.intranet:80>
   ServerName dev.intranet
    ...
</VirtualHost>

NameVirtualHost dev.afpwebworks.com:80
<VirtualHost dev.afpwebworks.com:80>
   ServerName dev.afpwebworks.com
    ...
</VirtualHost>

NameVirtualHost dev.bluegrass.org.au:80
<VirtualHost dev.bluegrass.org.au:80>
   ServerName dev.bluegrass.org.au
    ...
</VirtualHost>

That's how I'm doing it on my dev machine & its working fine (I'm using a DNS server instead of the hosts file, but it shouldn't make any difference)

On 4/24/06, Mike Kear <[EMAIL PROTECTED]> wrote:

I'm working on setting my system up using Apache instead of IIS, and I
have the web server working,  I have worked through the excellent
article at http://johnbokma.com/windows/apache-virtual-hosts-xp.html
which explains how to do it in the simplest, clearest terms I've
encountered before.

However I've missed something somewhere because I'm still not getting
multiple virtual sites appearing. Have i got something wrong here or
missed something?     Because using any of these urls  takes me to the
same place - the root of the first one.

Can anyone see what's wrong here?

Here's my hosts file relating to this area:

127.0.0.1   localhost
127.0.0.1   dev.afpwebworks.com   # my company site
127.0.0.1   dev.bluegrass.org.au  # my bluegrass site
127.0.0.1   dev.intranet          # intranet - admin apps


I've included a virtual-hosts.txt file with the virtual hosts listed,
and restarted apache after every change to any of these files.
Here's whats in the virtual-hosts.txt file:


#
# Use name-based virtual hosting.
NameVirtualHost *:80

<VirtualHost *>
    ServerName dev.intranet
    DocumentRoot "C:/sites/Mysites/intranet.com/site/web"
    ErrorLog "C:/sites/Mysites/intranet.com/local-logs/error.log"
    CustomLog "C:/sites/Mysites/intranet.com/local-logs/access.log" combined
</VirtualHost>

<VirtualHost *>
    ServerName dev.afpwebworks.com
    DocumentRoot "C:/sites/Mysites/afpwebworks.com/site/web"
    ErrorLog "C:/sites/Mysites/afpwebworks.com/local-logs/error.log"
    CustomLog "C:/sites/Mysites/afpwebworks.com/local-logs/access.log" combined
</VirtualHost>

<VirtualHost *>
    ServerName dev.bluegrass.org.au
    DocumentRoot "C:/sites/Mysites/bluegrass.org.au/site/web"
    ErrorLog "C:/sites/Mysites/bluegrass.org.au/local-logs/error.log"
    CustomLog "C:/sites/Mysites/bluegrass.org.au/local-logs/access.log" combined
</VirtualHost>


--
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to