Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Multi site setup issue

Problems setting multiple sites on apache.

     

tclancey

10:56 am on Apr 25, 2013 (gmt 0)



Hi folks, I'm sure this is simple and I'm missing something straightforward, I'm new to this lark.

I have Apache 2.2 installed and working fine, I want to serve more than one site on the same server and single IP address. I can get it all working with one site fine, but if I add details for virtual hosts only the first listed site gets any traffic. Conf of directories and virtuals is as follows, with the actual address' changed. Any help gratefully received.

############### NAME ALL FOLDERS

<Directory "D:/Web Sites/Dir1">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "D:/Web Sites/Dir2">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

################ NAME ALL VIRTUALS

<VirtualHost *:80>
DocumentRoot "D:/Web Sites/Dir1"
ServerName "www.website1.co.uk"
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:/Web Sites/Dir2"
ServerName "www.website2.co.uk"
</VirtualHost>

phranque

12:48 pm on Apr 27, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, tclancey!


only the first listed site gets any traffic


what response do you get when you request something from the second site?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month