Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to compress certain content from a reverse proxy by using mod_filter. The only way to know the mime type of the content is by inspecting the Content-Type header from the back end. The request URI is not a useful selector here because the system (Plone) keeps track of mime types without regard to filename or location.

This configuration seems to do basically what I want, compressing everything and then decompressing it again if it is an application, but that seems like a waste.

I would rather be able to AND and OR multiple conditions to decide whether to apply compression, duplicating the SetOutputFilter DEFLATE setup from the docs that everyone uses in a way that works with ProxyPass.

Is it possible to AND multiple conditions for mod_filter's FilterProvider?

ProxyPass / http://localhost:8080/
<Location />
    FilterDeclare gzip CONTENT_SET
    FilterDeclare gzipinflate CONTENT_SET
    FilterDeclare gzipinflate2 CONTENT_SET
    FilterProvider gzip deflate req=Accept-Encoding $gzip
    FilterProvider gzipinflate inflate resp=Content-Type $application/
    FilterChain +gzip +gzipinflate
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.