Shibboleth vs mod_rewrite

Brent Putman putmanb at georgetown.edu
Fri Oct 21 06:16:16 BST 2011



On 10/20/11 10:57 PM, Aaron Roots wrote:
> I didn't realise there would be
> a hugely functional difference between using the same directives in the
> three different types of sections. I really thought they were just
> different ways of achieving the exact same thing:

Wow.  Yeah, so did I.  Very bizarre.


> Having the full config in the .htaccess file doesn't work:
>
>
> Having it in a <Directory> block in apache.conf section doesn't work
>


These fail for me also for the redirect cases (anything other than
/index.php) - only REDIRECT_ vars come through, not the original ones.

The only combination that seems to work correctly for me is having the
Shib directives in a Location block, and the rewrite in either a
Directory block or in .htaccess.  (I couldn't get the case of both Shib
and rewrite in the Location to work b/c it's erroring out on an infinite
redirect loop.  I probably just have have something in the rewrite
screwed up).

This is definitely one for the "Apache Arcana" section of the wiki...

Glad you got it working.

--Brent






More information about the users mailing list