Page 1 of 1

Help needed with setting up virtual hosts

PostPosted: 15. January 2005 09:46
by justin.g
Hi,

I am using XAMPP 1.4.11.

I am trying to set up a PHP site on my Windows xp machine so that I can work on it locally.

I have set up my hosts file like this:

127.0.0.1 fred.local

and httpd.conf like this:

<VirtualHost>
DocumentRoot "C:\apachefriends\xampp\htdocs\fresenius_intranet\"
ServerName fred.local
</VirtualHost>


However when I type "http://fred.local" in my browser I get sent to
"http://fred.local/xampp/splash.php" and the XAMPP splash screen appears.

What am I doing wrong? Thanks
:( :!:

PostPosted: 16. January 2005 04:44
by taustin
Just above the VirtualHost directive, you need a line that looks like this:

NameVirtualHost *:80

to tell Apache to use virtual hosts.