[users@httpd] Removing request headers before a request is processed. . .

2011-11-23 Thread David Dabbs
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

Re: [users@httpd] Removing request headers before a request is processed. . .

2011-11-23 Thread Igor Cicimov
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