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


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: fred.local

and httpd.conf like this:

DocumentRoot "C:\apachefriends\xampp\htdocs\fresenius_intranet\"
ServerName fred.local

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
:( :!:
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.
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 41 guests