Re: [users@httpd] Search and Replace in ResponseHeader

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

 



Manuel Blechschmidt wrote:
> Hello Group,
> I want to change a cookie path which is created by a cgi script. The
> script is encoded and I can't change it. The URL in which way the script
> is opened is rewritten, so the cookie path is wrong.

Sounds like a poorly-designed CGI script, if it hardwires that path.

> SetEnvIf Cookies ".*SessionID=(.*)" SessionID=$1
>          ^^^^^ This only works with RequestHeaders

SetEnvIf directives are dealt with before your CGI script runs,
so they can't work on headers set by the script.

What exactly are you trying to do?  FWIW, mod_proxy can modify
cookies in proxied requests.  Would a generalisation of that in
mod_headers, maybe with regexp-based rewriting, serve your purposes?

-- 
Nick Kew

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