Shibboleth vs mod_rewrite
Brent Putman
putmanb at georgetown.edu
Wed Oct 19 06:52:38 BST 2011
On 10/19/11 1:02 AM, Aaron Roots wrote:
> Cheers for the articles and information
>
> However unlike the drupal example - the shibboleth protection is on the
> same directory as the real and rewritten path.
>
> For example this is basically my setup:
> http://server/folder/ is the location being protected (ie <Location
> /folder> etc)
> http://server/folder/index.php would be the real path
> http://server/folder/rewrite would be the rewrittable path that
> rewrites to http://server/folder/index.php
Ok, I see. Well that should be even simpler then. I can't see why that
wouldn't work.
> Going directly to http://server/folder/index.php works as expected - going
> to the http://server/folder/rewrite path - we don’t get the expected Env
> vars - just the REDIRECT_ ones
>
I just tried your set up and it works for me. Since you mentioned you
were using a .htaccess file for the RewriteRule, I even replicated that
(instead of putting the rewrite in the Apache .conf), as best I
understood what you were doing.
Here's what I have:
Apache .conf:
<Location /phpshibtest>
AuthType shibboleth
ShibRequestSetting requireSession 1
require shibboleth
</Location>
/phpshibtest/.htaccess :
RewriteEngine On
RewriteRule ^.*$ index.php
So basically everything is rewritten to invoke /phpshibtest/index.php
(which is just "<?php phpinfo(); ?>")
With that config, for anything under /phpshibtest (e.g. /shibtest/foo) I
get for example both an "eppn" and a "REDIRECT_eppn".
Are you doing something substantially different than the above?
--Brent
More information about the users
mailing list