Re: Web server and web domain



sb5309@xxxxxxxxx wrote:
A web server usually hosts many domains, ie "abcd.com", "123456.com"
etc.

A webserver can host many domains; it may host only one.

How does a web server indentifies which domain to server ?

Allen Kistler <ackistler@xxxxxxxxx> wrote:
Your browser sends the whole URL to the server.

That's not technically correct, but it's a good approximation. See
#2 below.


There are two ways that a webserver can identify which of potentially
several websites it needs to serve.

1. Each website might be assigned a unique IP address. The webserver can
determine the target IP address and deliver content accordingly. This
is required when negotiating SSL connections, as the webserver needs to
know which certificate to send before the session can be sufficiently
established to receive the Host header described in #2

2. Along with the GET/POST/whatever verb and target URI path, the browser
sends a "Host" header to identify the target host. This only works for
HTTP/1.0 and greater, but I'm not aware of anything still using HTTP/0.9.

GET /some/path/index.html HTTP/1.0
Host: www.roaima.co.uk

Chris
.



Relevant Pages

  • Two taps, one IP?
    ... Can you suggest any way for me to configure my Ubuntu host or Debian qemu guests such that the host can access each webserver running in both guests? ... But each is unable to wget the other's webserver. ...
    (Debian-User)
  • [Full-disclosure] Re: strange domain name in phishing email
    ... It depends on the webserver whether it accepts the address in that form. ... sends a HTTP request. ... Part of HTTP since version 1.1 is the "Host:" header. ...
    (Full-Disclosure)
  • Re: DMZ Problematik
    ... > In der DMZ habe ich einen Host eingerichtet. ... > Internet, kann vom Internet auf diesen Host zugreifen, der ISP-Router ist ... > Da wir noch einen internen Webserver haben, ... > vom interne Netz kann ich auf diesen Webserver zugreifen. ...
    (microsoft.public.de.german.isaserver)
  • Re: DMZ Problematik
    ... "Joachim Kirchherr" schrieb im Newsbeitrag ... > In der DMZ habe ich einen Host eingerichtet. ... > Da wir noch einen internen Webserver haben, ... > vom interne Netz kann ich auf diesen Webserver zugreifen. ...
    (microsoft.public.de.german.isaserver)
  • Re: cs-host, host header and destination
    ... Host Header information was>www.microsoft.com. ... The webserver does not care ... Header for www.microsoft.com on this server, the>client got back a page! ... and I was wondering where and how that was set in IIS. ...
    (microsoft.public.inetserver.iis)