Forum Moderators: phranque

Message Too Old, No Replies

Problem with Vhost.conf

         

MaDDMaXX

4:52 pm on Jan 7, 2005 (gmt 0)



I am new to apache & Vhosts so sorry if I have made a stupid mistake:

I have three sites all pointed to the same machine. When I enter the urls they all go to the first site. I have spent a couple hours on this now and am at a loss. Attached below is my Vhost.conf file:

Any help would be greatly appriciated!

Thanks,
Max

#This is needed for Frontpage support
Port 80
ServerRoot /etc/httpd
ResourceConfig /dev/null
AccessConfig /dev/null

################# IP-based Virtual Hosts
#<VirtualHost 66.**.60.113>
#ServerAdmin admin@example.com
#ServerName 66.**.60.113
#DocumentRoot /var/www/html/skalos
#</VirtualHost>

################# Named VirtualHosts

NameVirtualHost 66.**.60.113

#<VirtualHost 66.**.60.113>
DocumentRoot /var/www/html/example_b
ServerName www.example_b.com
ServerAlias example_b.com *.example_b.com
#DocumentRoot /var/www/html/example_b
</VirtualHost>

<VirtualHost 66.**.60.113>
DocumentRoot /var/www/html/reunion
ServerName www.example_c.co.nr
#ServerAlias example_c.co.nr *.example_c.co.nr
#DocumentRoot /var/www/html/reunion
</VirtualHost>

<VirtualHost 66.**.60.113>
DocumentRoot /var/www/html/BCP2004
ServerName www.example_d.co.nr
#ServerAlias example_d.co.nr *.example_d.co.nr
#DocumentRoot /var/www/html/BCP2004
</VirtualHost>

[edited by: jdMorgan at 10:55 pm (utc) on Jan. 7, 2005]
[edit reason] Removed specifics per TOS. [/edit]