RewriteRule in .htaccess disables directive AddInputFilter DEFLATE from httpd.conf

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

 



I have configured my apache installation to accept a gzipped body on http requests. I did this by adding in the main apache configuration file the following lines:

<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
        SetInputFilter DEFLATE
   </IfModule>
</IfModule>

It works as expected except in the case that a matching RewriteRule directive is found, but I am not sure if I am missing something in my configuration or this is a bug or unexpected behaviour.

My test suite is the following:

The folder/file structure is:

/.htaccess
/test.php
/api/web/index.php

And the contents of the .htaccess is:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^api(.*)$ api/web/index.php [L]

The PHP files just outputs the body contents for testing.

POSTing to /test.php or /api/web/index.php with a compressed body request gets decompressed correctly.

POSTing to /api/, /api/web/ or /api/web/something (that is any request to api/* will get redirected to /api/web/index.php) does not get the body decompressed.

Can anybody point to me what I am missing?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux