I have installed xampp 1.7.2 on windows 7 x32
And I have so problem: server works and http://localhost is available, but if i try to use VirtualHost, then if I try to open http://hostname, then all virtualhosts open as http://hostname/xampp, as if I open http://localhost/xampp
I use hosts file for specify hosts and when I look a phpinfo() for each virtualhost then it shows a right hostname within servername.
Listing of the httpd_vhosts.conf:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName zfp
ServerAdmin postmaster@dummy-host.localhost
DocumentRoot "d:/_projects/self/zfp/WorkingCopy/trunk/code/public"
<Directory "/">
Options +Indexes +Includes +ExecCGI +FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog "logs/zfp-error.log"
CustomLog "logs/zfp-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerName chelssi
ServerAdmin postmaster@dummy-host.localhost
DocumentRoot "d:/_projects/self/chelssi.ru/WorkingCopy/trunk/code"
<Directory "/">
Options +Indexes +Includes +ExecCGI +FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ErrorLog "logs/chelssi-error.log"
CustomLog "logs/chelssi-access.log" combined
</VirtualHost>