<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Tataryn,<div><br></div><div>The Shibboleth SP uses the hostname that is supplied by the web server. The request coming through Apache is indicating two different hostnames. That's likely because the client is specifying different hostnames in intranet or extranet requests, and UseCanonicalName is Off, so Apache just dutifully relays those hostnames from the web browser to the SP. The SP then uses them to build redirects.</div><div><br></div><div>You can tell Apache to force the hostname to the name defined in your ServerName directive by adding a UseCanonicalName On directive.</div><div><br></div><div>Take care,</div><div>Nate.</div><div><br><div><div>On Feb 25, 2012, at 20:16 , Tataryn Oleksiy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="">Hello,</span><div style="">I have an Shibboleth SP installation that generates different endpoint urls depending on where it is accessed from: one if accessed from internet, another when accessed from intranet.</div> <div style="">In both cases SP is accessed using the same url in the browser address line. handlerURL is set in relative form (<font face="'courier new', monospace">handlerURL="/Shibboleth.sso"</font>).</div> <div style="">If I set handlerURL in absolute form (<font face="'courier new', monospace">handlerURL="<a href="https:/">https:/</a><a href="http://my.domain.com/Shibboleth.sso" target="_blank" style="color:rgb(17,85,204)">my.domain.com/Shibboleth.sso</a>"</font>) it works in an expected way.</div> <div style=""><br></div><div style="">What is the logic behind hostname discovery? Wiki says it is guessed from the VirtualHost, but I would like to know details, because I only have one VirtualHost set up in apache and it is obviously same for both intranet and internet.</div> <div style=""><br></div><div style="">Thanks,</div><div style="">Oleksiy</div> --<br>To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a></blockquote></div><br></div></body></html>