From d296edef8e776aab55d969603bdd6e2345b8d6b5 Mon Sep 17 00:00:00 2001 From: Takashi Sato Date: Fri, 23 May 2014 20:50:17 +0000 Subject: [PATCH] Merge r1517551, r1517588 and r1517589 from trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1597179 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_deflate.xml | 45 +++++---------------------------- 1 file changed, 7 insertions(+), 38 deletions(-) diff --git a/docs/manual/mod/mod_deflate.xml b/docs/manual/mod/mod_deflate.xml index ab4a99a5c1..a8da0c2455 100644 --- a/docs/manual/mod/mod_deflate.xml +++ b/docs/manual/mod/mod_deflate.xml @@ -54,6 +54,11 @@ client
Enabling Compression + Compression and TLS +

Some web applications are vulnerable to an information disclosure + attack when a TLS connection carries deflate compressed data. For more + information, review the details of the "BREACH" family of attacks.

+
Output Compression

Compression is implemented by the DEFLATE @@ -62,15 +67,10 @@ client is placed:

- SetOutputFilter DEFLATE +SetOutputFilter DEFLATE +SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip -

Some popular browsers cannot handle compression of all content - so you may want to set the gzip-only-text/html note to - 1 to only allow html files to be compressed (see - below). If you set this to anything but 1 it - will be ignored.

-

If you want to restrict the compression to particular MIME types in general, you may use the AddOutputFilterByType directive. Here is an example of @@ -83,37 +83,6 @@ client </Directory> -

For browsers that have problems even with compression of all file - types, use the BrowserMatch directive to set the no-gzip - note for that particular browser so that no compression will be - performed. You may combine no-gzip with gzip-only-text/html to get the best results. In that case - the former overrides the latter. Take a look at the following - excerpt from the configuration example - defined in the section above:

- - -BrowserMatch ^Mozilla/4 gzip-only-text/html -BrowserMatch ^Mozilla/4\.0[678] no-gzip -BrowserMatch \bMSIE !no-gzip !gzip-only-text/html - - -

At first we probe for a User-Agent string that - indicates a Netscape Navigator version of 4.x. These versions - cannot handle compression of types other than - text/html. The versions 4.06, 4.07 and 4.08 also - have problems with decompressing html files. Thus, we completely - turn off the deflate filter for them.

- -

The third BrowserMatch - directive fixes the guessed identity of the user agent, because - the Microsoft Internet Explorer identifies itself also as "Mozilla/4" - but is actually able to handle requested compression. Therefore we - match against the additional string "MSIE" (\b means - "word boundary") in the User-Agent Header and turn off - the restrictions defined before.

- Note The DEFLATE filter is always inserted after RESOURCE filters like PHP or SSI. It never touches internal subrequests. -- 2.40.0