[TASK] Add info about Apache version when using mod_filter 20/47020/2
authorEric Chavaillaz <eric@hemmer.ch>
Fri, 22 Jan 2016 10:55:23 +0000 (11:55 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 3 Mar 2016 19:25:31 +0000 (20:25 +0100)
Since mod_filter is available since Apache 2.3.7 we need to check for
the apache version in the htaccess file.
Older versions of apache will work as well, even though they do not need
to check for the existence of mod_filter.

A comment is added to inform older Apache versions.

Resolves: #72886
Releases: master, 7.6, 6.2
Change-Id: Ia4905c992b52b2bd540ece0a1c1866aeacf6de85
Reviewed-on: https://review.typo3.org/47020
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
_.htaccess

index cb44b53..1775887 100644 (file)
                </IfModule>
        </IfModule>
 
-       # Compress all output labeled with one of the following media types
+       # Compress all output labeled with one of the following media types.
+       #
+       # (!) For Apache versions below version 2.3.7 you don't need to
+       # enable `mod_filter` and can remove the `<IfModule mod_filter.c>`
+       # and `</IfModule>` lines as `AddOutputFilterByType` is still in
+       # the core directives.
+       #
+       # https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
+
        <IfModule mod_filter.c>
                AddOutputFilterByType DEFLATE application/atom+xml \
                        application/javascript \