Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is it possible to access response object data in Apache

  • SetEnvIf
  • RewriteCond

... so that one could manipulate headers based on content type and caching output?

From the documentation it seems that this is not possible. Is there any other module which could allow this kind of manipulation (setting environment variables based on response headers)?

share|improve this question
up vote 1 down vote accepted

mod_rewrite doesn't operate on headers, but you CAN do this with mod_headers, which has an example for this exact situation.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.