<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I'm trying to secure a site that funnels all the requests to a page for further processing. This page will parse the URL and attempt to find content in a database/on disk. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>For instance :<o:p></o:p></p><p class=MsoNormal>my.domain.com/path/to/something will rewrite to somepath/00101/index.php which in turn will look in a database for "path/to/something"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I'm trying to access the status page using the following URL (which matches the handlerURL of my configuration):<o:p></o:p></p><p class=MsoNormal>my.domain.com/somepath/00101/esas.sso/status.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However, I keep getting the following error:<o:p></o:p></p><p class=MsoNormal>Shibboleth handler invoked at an unconfigured location.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here some snippets of the various files involved.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>shibboleth2.xml<o:p></o:p></p><p class=MsoNormal>--------------------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><RequestMapper type="Native"><o:p></o:p></p><p class=MsoNormal> <RequestMap applicationId="default"><o:p></o:p></p><p class=MsoNormal> <Host name="my.domain.com" scheme="http"> <o:p></o:p></p><p class=MsoNormal> <!-- protect these --> <o:p></o:p></p><p class=MsoNormal> <PathRegex regex=".*" authType="shibboleth" applicationId="client-application2" requireSession="true" requireSessionWith="Intranet" /><o:p></o:p></p><p class=MsoNormal> </Host><o:p></o:p></p><p class=MsoNormal> </RequestMap><o:p></o:p></p><p class=MsoNormal></RequestMapper><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>...<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><!-- Active Directory Override --><o:p></o:p></p><p class=MsoNormal><ApplicationOverride id="client-application2" entityID="urn:here"<o:p></o:p></p><p class=MsoNormal> homeURL="http://my.domain.com"<o:p></o:p></p><p class=MsoNormal> REMOTE_USER="eppn persistent-id targeted-id"<o:p></o:p></p><p class=MsoNormal> signing="true" encryption="false"><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <!-- cookieProps adding ;secure will only send cookie when it's over https. Since we were on http, it didn't send it, creates a new session and returns us on homeURL instead of where we're going --><o:p></o:p></p><p class=MsoNormal> <Sessions lifetime="7200" timeout="1020" checkAddress="false"<o:p></o:p></p><p class=MsoNormal> handlerURL="/somepath/00101/esas.sso" handlerSSL="false" <o:p></o:p></p><p class=MsoNormal> cookieProps=";path=/somepath/00101/"<o:p></o:p></p><p class=MsoNormal> exportLocation="http://localhost/esas.sso/getassertion" exportACL="127.0.0.1"<o:p></o:p></p><p class=MsoNormal> idpHistory="false" idpHistoryDays="7"><o:p></o:p></p><p class=MsoNormal> <md:AssertionConsumerService Location="/saml2/post" index="1"<o:p></o:p></p><p class=MsoNormal> Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/><o:p></o:p></p><p class=MsoNormal> </Sessions><o:p></o:p></p><p class=MsoNormal> <Errors globalLogout="globalLogoutRedirect.html"<o:p></o:p></p><p class=MsoNormal> extGlobalLogoutUrl="{postLogoutURL}"/><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <!-- if SLO is supported, configure notify URL below --><o:p></o:p></p><p class=MsoNormal> <!--Notify Channel="front" Location="{logoutNotifyURL}"/--><o:p></o:p></p><p class=MsoNormal></ApplicationOverride><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>.htaccess<o:p></o:p></p><p class=MsoNormal>-----------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>RewriteRule ^somepath/(.*).php somepath/00101/index.php [NC,L,QSA]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>RewriteCond %{REQUEST_FILENAME} !-f<o:p></o:p></p><p class=MsoNormal>RewriteCond %{REQUEST_FILENAME} !-d<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>RewriteRule (.*) somepath/00101/index.php [L,QSA]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>httpd.conf<o:p></o:p></p><p class=MsoNormal>-------------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><VirtualHost *:80><o:p></o:p></p><p class=MsoNormal> <Location /><o:p></o:p></p><p class=MsoNormal> AuthType shibboleth<o:p></o:p></p><p class=MsoNormal> require shibboleth<o:p></o:p></p><p class=MsoNormal> ShibUseHeaders On<o:p></o:p></p><p class=MsoNormal> </Location><o:p></o:p></p><p class=MsoNormal></VirtualHost><o:p></o:p></p></div></body></html>