xampp virtual hosts problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

xampp virtual hosts problem

Postby nsblenin » 26. November 2012 18:14

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.
nsblenin
 
Posts: 1
Joined: 26. November 2012 18:13
Operating System: Windows 7

Re: xampp virtual hosts problem

Postby Nobbie » 26. November 2012 21:31

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)?
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: xampp virtual hosts problem

Postby WilliL » 26. November 2012 21:37

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
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests