Page 1 of 1

xampp virtual hosts problem

PostPosted: 26. November 2012 18:14
by nsblenin
I am using XAMPP and I have this httpd-hosts.conf configuration:

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\tresxtres-artgallery"
ServerName tresxtres-artgallery.local
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\app_cache"
ServerName app_cache.local
</VirtualHost>
The result is that the server always serve the first virtual host even if the url is http://app_cache.local

Any ideas? Thanks.

Re: xampp virtual hosts problem

PostPosted: 26. November 2012 21:31
by Nobbie
nsblenin wrote:I am using XAMPP and I have this httpd-hosts.conf configuration:


That does not work. It must be httpd-vhosts.conf

At next: do you really show us your original file (copy & paste)?

Re: xampp virtual hosts problem

PostPosted: 26. November 2012 21:37
by WilliL
did you extend hosts file?
(c:\windows\system32\drivers\etc\HOSTS)
127.0.0.1 tresxtres-artgallery.local
127.0.0.1 app_cache.local