Apache Virtual Hosts (again)
Hi everyone.
Iam trying to set up virtual hosting on my machine at work. In the hosts table I have two names Server1 and Server2 both on the same IP address 10.1.2.95 I am trying this ServerName Server1 NameVirtualHost 10.1.2.95 <VirtualHost 10.1.2.95> ServerName Server1 DocumentRoot "some_path/Server1" Alias / blar/index.html </VirtualHost> <VirtualHost 10.1.2.95> ServerName Server2 DocumentRoot "some_path/Server2" Alias / blar/blar/enter.html </VirtualHost> The problem is if I put http://Server1 or http://Server2 in a browser all I see is content of one site only. It never shows each site with different content. If I playaround with the DocumentRoots it will show the other site for both sites, never different conten for each site. What is happening this is driving me crazy. I have read and read and read everything I can find but I can't find the answer. Any help will be very gratfully received. |
OPPS SORRY
I read the above for mistakes and as sod's law goes I didn't spot anything until I posted.
The Aliases have all got '\' on them not '/' DOH ! red faced shame............. |
All times are GMT -5. The time now is 11:28 AM. |