Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.