httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "E. Jordan Bojar" <>
Subject Name-based virtual hosts
Date Fri, 12 Apr 2002 18:55:31 GMT
I've got what may be an embarrasingly simple virtual-hosting question.

How can I force Apache to answer to *only* the "ServerName" value for a
given virtual domain?  Currently, an http request to '' gives
the appropriate virtual site, but '' without a host name defaults
to the main site for the server (ie, the non-virtual entry).

The virtual configuration looks like this:

 DocumentRoot /usr/local/http/
 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
 CustomLog logs/virtual_log combo

Adding a ServerAlias value of "*" didn't solve things.

I couldn't find this problem in the archives (though it may well be in
there).  Any idea what I might be doing wrong?


E. Jordan Bojar

"It's all fun and games until somebody loses an inode."

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message