[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#378737: marked as done (strange virtual server config for default server)



Your message dated Tue, 5 Jun 2007 23:26:10 +0200
with message-id <200706052326.10273.sf@sfritsch.de>
and subject line strange virtual server config for default server
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2
Version: 2.0.54-5

In /etc/apache2/sites-enabled/000-default I defined:

# globale Optionen fuer alle virtuellen Server:
ServerSignature Email
ServerTokens    ProductOnly


NameVirtualHost 62.206.102.82:80
<VirtualHost 62.206.102.82:80>
[snip]
        AddType application/x-x509-ca-cert .der
        AddType application/x-pkcs7-crl    .crl

</VirtualHost>


This works fine as long as I use the URL
http://62.206.102.82/ca.der
because Firefox tells me that this certificate would exists.

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.


--- End Message ---
--- Begin Message ---
If you use

NameVirtualHost 62.206.102.82:80
<VirtualHost 62.206.102.82:80>

then the settings inside the VirtualHost section will only be applied 
if you access the server with http://62.206.102.82/ or with a FQDN 
that is given as ServerName or ServerAlias inside this VirtualHost 
section. This works as documented [1].

If you want the settings to be applied by default, you have to define 
them outside of the VirtualHost sections that are used for 
NameVirtualHost.

[1] http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost

--- End Message ---

Reply to: