<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="&#39;courier new&#39;, monospace">handlerURL=&quot;/Shibboleth.sso&quot;</font>).</div>

<div style>If I set handlerURL  in absolute form (<font face="&#39;courier new&#39;, monospace">handlerURL=&quot;https:/<a href="http://my.domain.com/Shibboleth.sso" target="_blank" style="color:rgb(17,85,204)">my.domain.com/Shibboleth.sso</a>&quot;</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>