<div dir="ltr">Hello Peter,<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">all you need to do is map both vhosts to the same content in the webserver (as usual)<br>
and add protocol endpoints for both vhosts to the SAML Metadata<br>
describing that SP. (Essentially duplicating the ACS URLs for the<br>
second vhost). That's all. No rewrites, no ApplicationOverrides.<br></blockquote>
<span class="m_5829729916423084176gmail-im"><br>Of course, what you suggest is the easiest configuration and the more logical one. The problem with this is that we can't do that because the App that is protected is Liferay and use fqdn to know wich "site" it will shows. So in the liferay, we have set-up a site for siteA and it would cost us a lot to duplicate it to another one with hostname siteb and maintained it. That's why we try to make URL rewriting. <br></span><div> <br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The problem that I got is that Shibboleth thinks that I'm trying to spoof his cookies when I access the URL <a href="http://siteA" target="_blank">http://siteA</a>. </blockquote><div>This statement wasn't true. What's happening is that Shibboleth set headers because of "<i>ShibUseHeaders On</i>" and so when the request is proxied to <a href="http://siteB" target="_blank">http://siteB</a>, shibboleth think that someone has tried to spoof headers. So what I did is deleted this line.<br><br></div><div>Now I don't have the error "<i>Attempt to spoof header (Shib-Cookie-Name) was detected</i>" as expected, but I don't have SSO. <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-04 11:18 GMT+02:00 Peter Schober <span dir="ltr"><<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Peter Schober <<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>> [2016-10-04 11:14]:<br>
<span>> > > <Location /><br>
> > > AuthType shibboleth<br>
> > > Require shibboleth<br>
> > > ShibRequestSetting applicationId default<br>
><br>
> The default applicationId is "default", so at best that does nothing.<br>
<br>
</span>Well, unless you have other config you didn't mention that uses<br>
ApplicationOverride and sets the applicationId to a non-default value.<br>
<div class="m_5829729916423084176HOEnZb"><div class="m_5829729916423084176h5">-peter<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.n<wbr>et</a><br>
</div></div></blockquote></div><br></div></div>