2

I want to implement something like the following in our Apache httpd configuration:

    <If "%{HTTP_USER_AGENT} !~ /something/">
        RemoveEncoding .gz .tgz
        AddType application/x-gzip .gz
    </If>

but my understanding is that this conditional <If> syntax only works with Apache 2.4.x. Unfortunately, I'm stuck with Apache 2.2.x for the time being. Is there a way to do this with Apache 2.2.x? Perhaps using BrowserMatch and an environment variable? Thanks!

Ed Sabol
  • 121
  • 4

0 Answers0