What is the use of Name-based hosting?

Started by Ritu, February 09, 2019, 03:39:58 PM

Previous topic - Next topic

Ritu

Hello everyone,
Can you guys explain to me what is name based hosting? And what is its use?

Krishnan

Name-based hosting is a commonly used Virtual hosting type. It allows the virtual hosts to serve multiple host-names that runs on a single machine and have a single IP address.

Keeran

Name-based hosting is used to respond to the request of a resource from the server. Then the server responds to the request using the host-name. Web servers use HTTP protocol to respond to the requested host-name.
The server contains all the information about the website and it is given to the user who requests for it.

Bhagyeshree

In name based hosting, it is possible to host multiple domains/websites on a single machine with a single IP. Since all the domains share the same IP, you need to just configure DNS of the domain to map it with its correct IP address and then configure Apache to identify it with the domain names.

sonam

In the name based virtual hosting, the server depends on the client to report the host-name as part of the HTTP header. By using this technique, many different hosts would be able to share the same IP address.