<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Fri, 22 Feb 2019 at 11:58, James Knott via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 02/22/2019 11:33 AM, Giles Orr wrote:<br>
> We use this ability a fair bit at my work: the web server determines<br>
> what name you're looking for from the incoming header,<br>
<br>
What would be in the header?  All IP has in the header to differentiate<br>
connections is IP address and port number.  For example, if I wanted to<br>
access the Mississauga Library ebook collection, I could open a browser<br>
to 13.92.99.128 and it would connect to port 443 for https.  I have not<br>
provided any other information.  So, how would the appropriate server be<br>
accessed from that, when multiple servers share a single IP?<br></blockquote><div><br></div><div>Since HTTP 1.1, a request may contain the "Host" header: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host</a> which web servers can they use to serve proper content for a given host name. See, for example, <a href="http://nginx.org/en/docs/http/request_processing.html">http://nginx.org/en/docs/http/request_processing.html</a> for information how nginx deals with multiple servers on the same IP address.</div><div><br></div><div>For https, there is SNI: <a href="https://en.wikipedia.org/wiki/Server_Name_Indication">https://en.wikipedia.org/wiki/Server_Name_Indication</a></div></div></div></div></div></div>