Re: Removing request headers before a request is processed. . .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's already in the examples of mod_headers:

SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader
Header set MyHeader "%D %t mytext" env=HAVE_MyRequestHeader

so you just need to midify it to something like this:

SetEnvIf MyRequestCookieHeader your_regexp_here HAVE_MyRequestCookieHeader
RequestHeader unset MyRequestCookieHeader env=HAVE_MyRequestCookieHeader



On Thu, Nov 24, 2011 at 2:34 AM, David Dabbs <dmdabbs@xxxxxxxxx> wrote:

I’m using httpd in front of a Tomcat app server and would like to remove some incoming cookies before requests are reverse-proxied to Tomcat. The cookie names are not fixed, but do match several simple regexps. Is there a recipe with mod_headers/mod_rewrite that would allow me to strip these cookies before these requests are handled?

 

Thanks,

 

David

 



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux