httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <>
Subject Re: [users@httpd] Apache2 only serves first virtualhost
Date Fri, 30 Jan 2009 10:47:38 GMT
On Thu, Jan 29, 2009 at 6:09 PM, Mark Van Crombrugge
<> wrote:

> Third HTTPD.CONF, no mather which URL one browses for, "Third Website" is
> allways served.
> NameVirtualHost *:80
> #
> # NOTE: NameVirtualHost cannot be used without a port specifier
> # (e.g. :80) if mod_ssl is being used, due to the nature of the
> # SSL protocol.
> #Third Website
> <Virtualhost *:80>
>  Documentroot /var/www/html/website3
>  ServerName
>  ServerAlias
> </Virtualhost>
> #Second Website
> <Virtualhost *:80>
>  Documentroot /var/www/html/website2
>  ServerName
>  ServerAlias
> </Virtualhost>
> # First Website
> <Virtualhost *:80>
>  Documentroot /var/www/html/
>  ServerName
>  ServerAlias
> </Virtualhost>

At first glance this is all correct, and should work. But it doesn't
you tell us...

NameVirtualHost relies on features in HTTP 1.1. It could be that the
requests your server are receiving are not HTTP .1.0.

Could you test your site from the machine itself, using something like curl?
curl -v "" should give you the startpage of the third
website. If it does, than there is nothing wrong with your apache, and
the problem is somewhere else.
If your servert is the problem then you should look at something that
might be sabotaging your webserver's ability to find the right virtual


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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