Re: Modify response header

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

 



André Warnier wrote:
Diego Manilla Suárez wrote:

Any other alternative before giving up and modifying some of Tomcat classes?

a mod_perl output filter
That is one alternative which I know works.
I don't know about other ones.

It requires installing perl and mod_perl on your Apache server, configuring it, then adding something like this to your Apache configuration :

<Location "/mywebapp">
  # the following replaces JkMount/JkUnMount directives
  SetHandler jakarta-servlet
  # the following filter would modify outgoing Set-Cookie headers
  PerlOutputFilterHandler My::CookieFilter
</LocationMatch>

and of course, someone has to write that filter, but it's not so hard.


Additional note : instead of doing this at the Apache level, you might also want to have a lok at doing this at the Tomcat level. Instead of modifying existing classes, you could probably do this with a servlet filter.
You may want to have a look at URLRewriteFilter :
http://tuckey.org/urlrewrite/
Your request is rather specific, so I don't know if it does that kind of thing, but it's worth knowing about it anyway.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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