httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46824] New: RemoveOutputFilter will not work for Filters added in server config
Date Mon, 09 Mar 2009 17:20:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46824

           Summary: RemoveOutputFilter will not work for Filters added in
                    server config
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mime
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: heinrich.mislik@univie.ac.at


This config-snippet at server config will not work:

    AddOutputFilter INCLUDES html htm shtm shtml
    <Directory /u/www>
    RemoveOutputFilter html
    </Directory>

.html files still have the INCLUDE filter activ.

The Reason is, that according to 

http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Order_Consequences

the serve-config is merged after all others, but merge_mime_dir_configs from
mod_mime.c assumes, that merging is done top down.

Workaround is to put AddOutputFilter into <Directory /> section.

Solutions possible: disallow AddOutputFilter in server config. Put warning into
Documentation. Repair merge_mime_dir_configs, but I think, this may become
complicated.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message