You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ms...@freezone.co.uk on 2006/01/20 16:43:43 UTC
[users@httpd] environment-only rewrite rule
I'm struggling to create a mod_rewrite rule which *doesn't* modify the
request - only changes an environment variable
I tried -
RewriteRule . %{REQUEST_FILENAME} [L,E=KRB5CCNAME:%{ENV:REDIRECT_KRB5CCNAME}]
- but still it has some weird side effects
I'm using PHP SASL bindings -
http://cgi.sfu.ca/~jdbates/moin/moin.cgi/SquirrelMail&SASL
GSSAPI authentication needs the KRB5CCNAME environment variable set by
mod_auth_kerb
- but with php-cgi, KRB5CCNAME corresponds to defining Kerberos
authentication on the PHP interpreter, where as REDIRECT_KRB5CCNAME is
authentication defined on the PHP script
Defining Kerberos authentication on the PHP interpreter isn't reasonable
because I don't want all scripts to require authentication
So my challenge is to copy contents of REDIRECT_KRB5CCNAME to KRB5CCNAME
Any help? Many thanks! Jack
Re: [users@httpd] environment-only rewrite rule
Posted by Joshua Slive <jo...@slive.ca>.
On 1/20/06, ms419@freezone.co.uk <ms...@freezone.co.uk> wrote:
> I'm struggling to create a mod_rewrite rule which *doesn't* modify the
> request - only changes an environment variable
>
> I tried -
>
>
> RewriteRule . %{REQUEST_FILENAME} [L,E=KRB5CCNAME:%{ENV:REDIRECT_KRB5CCNAME}]
>
>
> - but still it has some weird side effects
Use
RewriteRule .* - [whatever-options]
The dash as the second argument indicates no rewriting.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org