I 've this little question however i could not learn more about this, most likely because I am not searching the right factor.

Whenever a browser request for "world wide web.mydomain.com", the DNS server returns an Ip, then your browser visit... but exactly what does happen then? I am talking about, that Ip might be a hosting that is shared that consists of 100s of webpages and domain names, just how will it knows where it need to go?

Is one thing the web server does? could it be something which I possibly could implement inside a web application?

I am talking about, for instance I've got a web application that consists of accounts, and every account includes a default web site. You can access that page passing the account namne, for instance "world wide web.mydomain.com/myaccount", however I wish to register "world wide web.myaccount.com" after which it'll obtain the "world wide web.mydomain.com/myaccount" content. Is it feasible?

Xox.

The webserver handles which application responds for your request. Your "hosting that is sharedInch has another title. It's known as "virtual hosts". The webserver has a listing of "virtual hosts" and for the way you have towards the host (via what hostname), the net server picks which application responds for your request.

HTTP/1.1 mandates that all demands incorporate a Host header including the domain title that you simply entered. So a fundamental request "http://world wide web.example.com/foo/bar.html" may be like this:

GET /foo/bar.html HTTP/1.1
Host: world wide web.example.com

And also the web server will have the ability to make use of the Host header to route the request towards the correct website, even when there's several on a single Ip.