Greetings,
This is my first post in this forum, and my first steps with XAMPP and Apache in general.
I am trying to set up a few virtual hosts. Going step by step, I'd like to get one working first.
My hosts file has been modified to include a line :
127.0.0.1 myserver
The httpd.conf file has been changed to include the vhosts file, and basic document root is set to D:/localhost.
The vhosts file contains the following :
With this, I can start the Apache server, and reach the index.html of the root directory without trouble.
However, the server returns the same index.html for the myserver link as well, and not the index.html that is in /localhost/myserver.
I am running Win7, 32-bit.
Can someone tell me what I'm doing wrong ? Thanks.
I've got nothing to hide, and I'd very much like to keep that away from prying eyes.
This is my first post in this forum, and my first steps with XAMPP and Apache in general.
I am trying to set up a few virtual hosts. Going step by step, I'd like to get one working first.
My hosts file has been modified to include a line :
127.0.0.1 myserver
The httpd.conf file has been changed to include the vhosts file, and basic document root is set to D:/localhost.
The vhosts file contains the following :
Code:
NameVirtualHost *:80
<VirtualHost localhost:80>
DocumentRoot "D:/localhost"
ServerName localhost
<Directory "D:/localhost">
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost myserver:80>
DocumentRoot D:/localhost/myserver
ServerName myserver
<Directory "D:/localhost/myserver">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
With this, I can start the Apache server, and reach the index.html of the root directory without trouble.
However, the server returns the same index.html for the myserver link as well, and not the index.html that is in /localhost/myserver.
I am running Win7, 32-bit.
Can someone tell me what I'm doing wrong ? Thanks.
I've got nothing to hide, and I'd very much like to keep that away from prying eyes.