Types Of Virtual Hosting

There are three types of virtual hosting.

  1. IP Based Virtual Hosting (not commonly used)
  2. Port Based Virtual Hosting (not commonly used)
  3. Name Based Virtual Hosting (commonly used)

a. IP Based Virtual Hosting:

IP based virtual Hosting is the method to run multiple websites on a single machine, but each website must be configured to run on a different/unique IP. To configure the IP base virtual hosting we have to assign multiple IPs to the machine(server).

Say we have a "Dell Precision 650" machine, to host 3 different websites we must assign 3 unique IP addresses to the machine, and then configure each website to listen on a dedicated IP.

Advantage:

Just a single physical machine will host multiple websites, otherwise we need a separate machine to host each website.

Disadvantage:

Requires a dedicated IP for each website.

b. Port Based Virtual Hosting:

Port base virtual Hosting is the method to run multiple websites on a single machine and even on a single/same IP, but each website must be configured to run on a different/unique Port.

Say we have a "Dell Precision 650" machine, to host 3 different websites we just need a single dedicated/unique IP-add.

e.g we have to host www.test.com, www.wxyz.com, and http://www.ijkl.comon a single machine using single/same IP-addr… we will configure http://www.test.comto listen on port 81, http://www.wxyz.comto listen on port 82, and http://www.ijkl.comto listen on port 83.

Advantage:

Just a single physical machine and IP will host multiple websites. No need to purchase multiple machines and IP-add to host multiple websites.

Disadvantages:

– It is quite impossible to inform the users/surfers that on which particular port the website is hosted.
– And user/surfer must has to type the particular port in the url e.g

c. Name Based Virtual Hosting:

To run multiple websites on a single machine and even on a single/same IP and port, we have to configure the Name-Based Virtual Hosting.

Advantage:

A single machine, single IP, and the default http port(80) is used to host several websites.

Disadvantage:

Proper DNS configuration will be required to host and access the websites hosted via Name Base Virtual Hosting.

Note: Since other types of Virtual Hosting(IP and Port base) are not commonly used, thats why we just discuss the Name-Based virtual hosting and used the term "Virtual Hosting" for Name-Based Virtual Hosting.

Source:

https://www.novell.com/coolsolutions/feature/19856.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s