<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>I am experiencing problems using SSI includes on some virtual hosts, which seems to be related in some way to my ShibSP configuration. I am using Apache 2.4.4, Shib SP 2.5.1.</div><div><br></div><div>My Shibboleth2.xml config(sanitised to remove domain names) is included at the end. I have a number of virtual hosts in Apache, each of these that requires shib authentication is configured with an application override:</div><div>&lt;ApplicationOverride id="service2" entityID="https://service2.domain.com/shibboleth"/&gt;</div><div>Server Side Includes (SSI) work fine on virtual-hosts I've configured to use Shib authentication. virtual-hosts that have not been configured to use Shib authentication work in general, but SSI's fail (apache error log messages below).</div><div><br></div><div>All my Shib configuration in Apache, is contained within virtual hosts (not done anything globally). Is there something I need to do to explicitly disable Shib on a virtual host that doesn't need it?</div><div><br></div><div>Any thoughts / advice on how to solve or debug this further would be greatly appreciated.</div><div>Thanks,</div><div>Paul</div><div><br></div><div>Apache Error Log:</div><div><br></div><div>[Thu Jul 11 08:59:54.084076 2013] [mod_shib:error] [pid 64992:tid 140036716484352] [client XXX.XXX.XXX.XXX:51502] shib_handler found no per-request structure</div><div>[Thu Jul 11 08:59:54.084119 2013] [include:error] [pid 64992:tid 140036716484352] [client XXX.XXX.XXX.XXX:51502] unable to include "./header.htm" in parsed file /apache/content/error/503.err, subrequest returned 500</div><div>[Thu Jul 11 08:59:54.084362 2013] [mod_shib:error] [pid 64992:tid 140036716484352] [client XXX.XXX.XXX.XXX:51502] shib_handler found no per-request structure</div><div>[Thu Jul 11 08:59:54.084392 2013] [include:error] [pid 64992:tid 140036716484352] [client XXX.XXX.XXX.XXX:51502] unable to include "./footer.htm" in parsed file /apache/content/error/503.err, subrequest returned 500</div><div><br></div><div><br></div><div>Apache include config:</div><div><br></div><div>ErrorDocument 404 /error/404.err</div><div>ErrorDocument 503 /error/503.err</div><div>&lt;Location /error&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Options IncludesNOEXEC</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AddType text/html .err</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AddOutputFilter INCLUDES .err</div><div>&lt;/Location&gt;</div><div><br></div><div><br></div><div>ShibSP Config:</div><div>&lt;SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config"</div><div>&nbsp; &nbsp; xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config"</div><div>&nbsp; &nbsp; xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"</div><div>&nbsp; &nbsp; xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"</div><div>&nbsp; &nbsp; xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"</div><div>&nbsp; &nbsp; clockSkew="180"&gt;</div><div><br></div><div>&nbsp; &nbsp; &lt;ApplicationDefaults entityID="https://service1.domain.com/shibboleth"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REMOTE_USER="username"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Sessions lifetime="28800" timeout="3600" relayState="ss:mem"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkAddress="false" handlerSSL="true" cookieProps="https"&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;SSO entityID="https://login.domain.com/entity"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SAML2</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/SSO&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Logout&gt;SAML2 Local&lt;/Logout&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Handler type="MetadataGenerator" Location="/Metadata" signing="false"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Handler type="Status" Location="/Status" acl="127.0.0.1 ::1"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Handler type="Session" Location="/Session" showAttributeValues="false"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Handler type="DiscoveryFeed" Location="/DiscoFeed"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Sessions&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Errors supportContact="help@domain.com"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helpLocation="/about.html"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; styleSheet="/shibboleth-sp/main.css"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;MetadataProvider type="XML" uri="https://login.domain.com/entity"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; backingFilePath="testlogin-metadata.xml" reloadInterval="7200"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/MetadataProvider&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;AttributeExtractor type="XML" validate="true" reloadChanges="false" path="attribute-map.xml"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;AttributeResolver type="Query" subjectMatch="true"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Additional Applications : vhosts --&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;ApplicationOverride id="service2" entityID="https://service2.domain.com/shibboleth"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;ApplicationOverride id="service3" entityID="https://service3.domain.com/shibboleth"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;ApplicationOverride id="service4" entityID="https://service4.domain.com/shibboleth"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &lt;/ApplicationDefaults&gt;</div><div><br></div><div>&nbsp; &nbsp; &lt;SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &lt;ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/&gt;</div><div><br></div><div>&lt;/SPConfig&gt;</div><div><br></div><div><br></div><div><br></div><div><br></div>                                               </div></body>
</html>