Hello everyone,
First time with XAMPP and I need to create virtual hosts in Win7.
XAMPP is running fine, albeit with a little line on startup :
ERROR: Status Check Failure [-2]
This error does not keep me from running the Control Panel, nor does it prevent Apache from serving pages.
My hosts file includes a line 127.0.0.1 myserver
My httpd.conf file redirects the root folder with <Directory "D:/localhost">
My httpd-vhosts.conf contains the following :
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/localhost"
ServerName localhost
<Directory "D:/localhost">
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot D:/localhost/myserver
ServerName myserver
<Directory "D:/localhost/myserver">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
As far as I can tell, this is in line with how things should be configured for a proper virtual host setup. Unfortunately, it cannot be true because, if I uncomment the line
Include "conf/extra/httpd-vhosts.conf"
in the httpd.conf file, then start up Apache, both localhost and myserver send me to the same page - the one for localhost.
So there must be an issue in my vhost configuration, but I am at a loss as to what.
oh, and I have tried
<VirtualHost localhost:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:/localhost"
ServerName localhost
<Directory "D:/localhost">
AllowOverride None
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost myserver:80>
ServerAdmin webmaster@localhost
DocumentRoot D:/localhost/myserver
ServerName myserver
<Directory "D:/localhost/myserver">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
but there is still no change.
Thank you for your help