httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Berkowitz <>
Subject Re: [users@httpd] Virtual Host Issue
Date Wed, 28 May 2003 13:49:49 GMT
When Virtual hosts are defined, any requests for a host NOT defined as
a virtual host go to the first VirtualHost defined.

So if you use other CNAMES, or an IP address to reach this server,
those requests will all go to whatever VirtualHost is defined first.

Since is the only VirtualHost, all requests go

So define as a VirtualHost, but put it first in the
list if you want it to be the default.

Putting it second will work for that name, but not if you want to use
other names or IP address.

--- Martin Greco <> wrote:
> Hi Everyone:
> I configured my webserver with apache2 (redhat 8).
> I have the following problem:
> I configured a virtual host and the main server document root.
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost *
> <VirtualHost *>
>     ServerAdmin
>     DocumentRoot /var/www/html/squirre
>     ServerName
>     ErrorLog logs/squirre_error.log
>     CustomLog logs/squirre.log common
> </VirtualHost>
> The problem is that when I browse it sends me to
> the
> virtual host.
> I fixed this by configuring other virtual host named
> I'm sure this is not the right way.
> Any suggestions?
> Thanks.
> #####################
> # Martin Greco

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).

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

View raw message