Apache2.0 virtual hosts

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: R Melder at SPiN Internet Media
Date:  
Subject: Apache2.0 virtual hosts
Your server name needs to be different.=20

Also, take that * out of the virtual hosts directive and replace it with =
the
complete virtual host name.

; ) .randy

=20
..:: Randy Melder ::..
602-279-0135 - www.spininternetmedia.com
=20
=20
=20


-----Original Message-----
From:
[mailto:plug-discuss-admin@lists.plug.phoenix.az.us] On Behalf Of Don =
Calfa
Sent: Friday, May 30, 2003 10:52 AM
To:
Subject: Apache2.0 virtual hosts


I have 1 IP and want to setup a couple of sites on that IP.
DNS resolves correctly to the IP address.

Here's my Vhosts directives:

<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website1.com"
ServerName website1.com
ServerAlias www.website1.com
</VirtualHost>

<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website2.com"
ServerName website2.com
ServerAlias ww.website2.com az.website2.com
</VirtualHost>

www for website2 is hosted elsewhere.
Default document for site1 is index.php, site2 is index.html

If I have only 1 directive, I get that site but I don't get the Apache=20
welcome as I should for the IP address in the browser.

When I have both sites, I get only site1 even if I use=20
httpd://ww.website2.com/index.html

What am I doing wrong?




---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss