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

I need to configure filter settings (In Apache2) based on RequestContent header. Is it possible?

Specifically changes based on the value of one header.

(I'm using mod_line_edit to filter html in reverse proxy)

EDIT: I'm doing reverse proxy and I want to filter out some tags (I can do that with mod_line_edit) I only want to apply this rules when there is specific RequestHeader present.

share|improve this question

I don't believe this is possible, and if it were it would be a REALLY BAD IDEA -- Allowing you to change configuration settings on a server by magic in the client's request headers would be a pretty serious security hole.

Perhaps if you can tell us more about what you're trying to do someone can suggest a less painful way of accomplishing it?

share|improve this answer
I tried to improve my question – Hurda Nov 21 '11 at 21:18

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.