Help needed with setting up virtual hosts

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

Help needed with setting up virtual hosts

Postby justin.g » 15. January 2005 09:46

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
:( :!:
justin.g
 
Posts: 1
Joined: 15. January 2005 09:32

Postby taustin » 16. January 2005 04:44

Just above the VirtualHost directive, you need a line that looks like this:

NameVirtualHost *:80

to tell Apache to use virtual hosts.
taustin
 
Posts: 150
Joined: 24. September 2004 00:23
Location: Huntington Beach CA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 103 guests