Welcome to WebmasterWorld Guest from 54.204.219.143

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Multi site setup issue

Problems setting multiple sites on apache.

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

New User

joined:Apr 25, 2013
posts: 1
votes: 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>
12:48 pm on Apr 27, 2013 (gmt 0)

Administrator

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

joined:Aug 10, 2004
posts:10684
votes: 33


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?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members