with XAMPP1.5 I was able to configure a virtualhost with document root in my home directory while keeping the localhost with the default XAMPP documentroot dir.
That is, when I request the URL "http://localhost" with Firefox the browser load the default XAMPP home page while when I request the URL "local.sentina.it" I got the home page of my local web site located in my home subdir (/home/pavonic/local.sentina.it).
To make this I added only the virtualhost section in httpd.conf:
- Code: Select all
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot /opt/lampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot /home/pavonic/local.sentina.it
ServerName local.sentina.it
</VirtualHost>
With XAMPP1.5.1 the configuration above doesn't work any more (I've moved lines above in the extra/httpd-vhosts.conf). When I try to load the URL http://local.sentina.it the browser add always the string '/xampp' to the url and the XAMPP home page is loaded. When istead I loadthe URL http://local.sentina.it/blog the server respond with a 404 error..
The unique workaround I found is changing the default DocumentRoot directive in httpd.conf in "/home/pavonic/local.sentina.it".
I seems strange for me.
Is there something wrong in configuration?
Thanks,
Cristian