
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.
решение1
I don't believe this is possible, and if it were it would be a REALLY BAD IDEA-- Позволить вам изменять параметры конфигурации на сервере с помощью магии в заголовках клиентских запросов было бы довольно серьезной дырой в безопасности.
Возможно, если вы расскажете нам больше о том, что вы пытаетесь сделать, кто-нибудь сможет предложить менее болезненный способ этого добиться?