httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Search and Replace in ResponseHeader
Date Wed, 20 Apr 2005 11:44:14 GMT
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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message