Networking Forums

Networking Forums > Computer Networking > Linux Networking > Web server and web domain

Reply
Thread Tools Display Modes

Web server and web domain

 
 
sb5309@yahoo.com
Guest
Posts: n/a

 
      10-28-2008, 01:59 AM
I am not sure where to put this question.

A web server usually hosts many domains, ie "abcd.com", "123456.com"
etc.

When I ping "abcd.com" or "123456.com", it returns a single IP
address.

How does a web server indentifies which domain to server ?

Thanks.
 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      10-28-2008, 04:42 AM
(E-Mail Removed) wrote:
> I am not sure where to put this question.
>
> A web server usually hosts many domains, ie "abcd.com", "123456.com"
> etc.
>
> When I ping "abcd.com" or "123456.com", it returns a single IP
> address.
>
> How does a web server indentifies which domain to server ?


Your browser sends the whole URL to the server.

If the web service is configured for it, the service is smart enough to
pull out the virtual server name and serve up only the content
associated with that server name.
 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      10-28-2008, 09:35 AM
(E-Mail Removed) 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 <(E-Mail Removed)> 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
 
Reply With Quote
 
sb5309@yahoo.com
Guest
Posts: n/a

 
      10-29-2008, 12:59 AM
Sorry for the repeated post.

I sent in the morning, but the post did not appear even at 2PM. So I
sent again.

Thanks.


sb5...@yahoo.com wrote:
> I am not sure where to put this question.
>
> A web server usually hosts many domains, ie "abcd.com", "123456.com"
> etc.
>
> When I ping "abcd.com" or "123456.com", it returns a single IP
> address.
>
> How does a web server indentifies which domain to server ?
>
> Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to browse domain list for primary domain on any server or P Fraser Simpson Windows Networking 6 09-15-2006 03:39 PM
Server 2003 Standard - Cannot browse domain with domain controller! davidw@dwynn.demon.co.uk Windows Networking 2 04-12-2006 04:28 PM
VPN: unable to connect to the shares in a Win2003 Domain Server of a child domain Stefano Del Furia Windows Networking 5 11-02-2005 06:23 PM
Windows Server 2003 loses domain membership in NT domain... Paul Konchar Windows Networking 4 02-08-2005 08:40 PM
No domain server error when logging into domain Abdurrahman Seedat [Herby] Windows Networking 0 01-09-2004 12:08 PM



1 2 3 4 5 6 7 8 9 10 11