homepage Welcome to WebmasterWorld Guest from 23.23.12.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Multi site setup issue
Problems setting multiple sites on apache.
tclancey



 
Msg#: 4567879 posted 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

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



 
Msg#: 4567879 posted 12:48 pm on Apr 27, 2013 (gmt 0)

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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved