Score:1

Conditional directives based on User-Agent with Apache 2.2.x?

in flag

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!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.