How shared hostings, domain names and DNS work together?

Posted by vtortola on Stack Overflow See other posts from Stack Overflow or by vtortola
Published on 2010-05-06T23:08:39Z Indexed on 2010/05/06 23:18 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

Hi,

I 've this little doubt but I couldn't find information about it, probably because I'm not searching the correct thing.

When a browser ask for "www.mydomain.com", the DNS server returns an IP Address, then the browser go there... but what does happen then? I mean, that IP address could be a shared hosting that contains hundreds of web pages and domains, so how does it knows where it have to go?

Is something that the web server does? is it something that I could implement in a web application?

I mean, for example I have a web application that contains accounts, and each account has a default web page. You could access that page passing the account namne, for example "www.mydomain.com/myaccount", but now I want to register "www.myaccount.com" and then it will get the "www.mydomain.com/myaccount" content. Is it possible?

Kind regards.

© Stack Overflow or respective owner

Related posts about web

Related posts about http