Hi everyone,
I am running Apache on NT. I am trying to set up virtual hosting on my workstation. It's IP address is 10.1.2.95
In the hosts table I have two names belonging to that address Server1 and Server2. I am trying to set up Virtual hosts:
ServerName Server1
NameVirtualHost 10.1.2.95
<VirtualHost 10.1.2.95>
ServerName Server1
DocumentRoot "E:/blar/HTTPServer/htdocs"
Alias / E:\blar\Server1\html\enter.html
</VirtualHost>
<VirtualHost 10.1.2.95>
ServerName Server2
DocumentRoot "E:/Site2"
Alias / E:\Site2\index.html
</VirtualHost>
DirectoryIndex index.html enter.html
The problem is if I put or into a broswer it will only show Server2's content for both sites. I have tried changing the directories where enter and index.html live, but nothing seems to make a diffrence. I have read so many FAQs and tips all over the place but I cannot resolve this. It's driving me mad!
Can anyone shed any light on this please?
I am running Apache on NT. I am trying to set up virtual hosting on my workstation. It's IP address is 10.1.2.95
In the hosts table I have two names belonging to that address Server1 and Server2. I am trying to set up Virtual hosts:
ServerName Server1
NameVirtualHost 10.1.2.95
<VirtualHost 10.1.2.95>
ServerName Server1
DocumentRoot "E:/blar/HTTPServer/htdocs"
Alias / E:\blar\Server1\html\enter.html
</VirtualHost>
<VirtualHost 10.1.2.95>
ServerName Server2
DocumentRoot "E:/Site2"
Alias / E:\Site2\index.html
</VirtualHost>
DirectoryIndex index.html enter.html
The problem is if I put or into a broswer it will only show Server2's content for both sites. I have tried changing the directories where enter and index.html live, but nothing seems to make a diffrence. I have read so many FAQs and tips all over the place but I cannot resolve this. It's driving me mad!
Can anyone shed any light on this please?