Bug#378737: strange virtual server config for default server
On Tue, Jul 18, 2006 at 06:40:26PM +0200, Olaf Zaplinski wrote:
> Package: apache2
> Version: 2.0.54-5
>
> In /etc/apache2/sites-enabled/000-default I defined:
>
> NameVirtualHost 62.206.102.82:80
> <VirtualHost 62.206.102.82:80>
> But when I use a FQDN that is not defined as a virtual server, Firefox
> wants to download ca.der. The behaviour should be the same as with the IP
> address, as 000-default is the valid config for all requests that are not
> defined as virtual server.
First off: the /etc/apache2/sites-available/default file, as shipped in both
apache2-common 2.0.54 and 2.2.3, uses NameVirtualHost * and <VirtualHost *>.
If you redefine that to use the IP and port, we're already past the point
where the default configuration is broken, because you're not using the
default configuration.
Secondly, I can't reproduce this, neither on sarge nor on unstable. I tried
using a FQDN that doesn't match anything mentioned in apache2 configuration,
but it still applies those two AddType directives.
Do you have any ServerName and/or ServerAlias settings in that new
VirtualHost? That sounds like a case where Apache won't use default
settings unless you use a FQDN that matches those.
--
2. That which causes joy or happiness.
Reply to: