Re: Inifite loop with mod_sspi,mod_proxy and mod_rewrite

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

 



Hi,

I had the same problem with mod_auth_kerb.

>         RewriteEngine On
>         RewriteCond %{LA-U:REMOTE_USER} (.+)
>         RewriteRule .* - [E=RU:%1]
>         RequestHeader set REMOTE_USER %{RU}e

My solution was to change the RewriteRule to:
   RewriteRule .* - [E=RU:%1,NS]

>From Apache documentation: 'nosubreq|NS' (used only if no internal sub-request)
This flag forces the rewriting engine to skip a rewriting rule if the current
request is an internal sub-request

%{LA-U:REMOTE_USER} is doing such an internal sub-request. And with the NS-flag
it isn't be rewritten to it self again and again...

By,

Martin Koerner






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