How to set up virtual hosts?

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

How to set up virtual hosts?

Postby zzeljko » 10. March 2008 09:14

This is the message I get when I run Apache:
[Mon Mar 10 08:07:55 2008] [warn] NameVirtualHost has no VirtualHosts

The relevant info from httpd.conf is:
NameVirtualHost "localhost:80"
NameVirtualHost ""
<VirtualHost "localhost:80">
<VirtualHost "">

It all works fine, and I can access both sites, but I don't quite understand the meaning of the warning message.

What is the best practice for setting up virtual hosts? Should I (and why) use IP addresses in NamVirtualHost directives, etc?
Posts: 9
Joined: 05. January 2008 18:52

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 82 guests