homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
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:4567881
 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




msg:4568481
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved