• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Types of Apache 2.4 Virtual Hosts : Name-Based, IP-Based, Port-Based

By Abhishek Ghosh March 31, 2014 3:06 am Updated on March 31, 2014

Types of Apache 2.4 Virtual Hosts : Name-Based, IP-Based, Port-Based

Advertisement

Three Types of Virtual Hosts are Explained – Name-Based, IP-Based, Port-Based. These Terms Often Create Misunderstanding to the New Users. Right now, we should be talking about Apache 2.4, because there will be some difference in the manual of Apache 2.4 versus Apache 2.6. Types of Apache 2.4 Virtual Hosts, should not be confused with terminologies associated with core of Virtualization, such as Kernel Based Virtual Host. We said that, it is possible to host Multiple Websites, Ubuntu 13.10 running Apache2 Webserver Software. What is Host in Computer Network was also explained in Host in Computer Network.

 

Types of Apache 2.4 Virtual Hosts : The Basics

 

As practically the Website Hosting Historically Started With one Computer on One Server; sooner the need to actually split one computer or rather Server to be used by Multiple Websites Started – Mainly to Reduce the Cost. We will not go to much details on individual types of these three virtual hosts but will write about in very short about all these three – Name-Based, IP-Based and Port-Based Virtual Hosts with example of simple your own computer or localhost.

Our Computer or any Computer in this World is localhost and has one reserved IP address – 127.0.0.1 ; be it your Mac, Windows PC or Rackspace Cloud Server; this is constant. 127.0.0.1 is conventionally a computer’s loopback address. Actually all IP addresses in the range of 127.0.0.1 to 127.255.255.255 are reserved for private use.

Advertisement

---

When we add a Network Connection to one Personal Computer or Server; we are getting another unique IP address, we are taking that your Internet Service Provider gives you one IP address. Now you installed Apache 2.4 Web Server Software on your Computer. Tell me, the way how it will be possible for you to use some names like localhost to designate 5-6 different test server environment on localhost? Obviously, subdirectory installation is not a solution.

localhost is the name, 127.0.0.1 is the IP. Again, thecustomizewindows.com is the name, 112.45.89.110 is the IP. For these reasons; gradually three main types of Apache 2.4 Virtual Hosts came to solve the issue. The examples are not perfect but very easy to understand.

 

Types of Apache 2.4 Virtual Hosts : Name-Based, IP-Based, Port-Based

 

Name-Based Virtual Host : Name-Based Virtual Host is most easy to configure and probably most commonly used. There are two ways for Apache 2.4 to configure one IP and corresponding one Server to server multiple fully qualified domain names. There is excellent detailed article on Apache’s website :

Vim
1
http://httpd.apache.org/docs/current/vhosts/details.html

Easiest example of Name-Based Virtual Host is the way we configure Apache2 by editing the /etc/apache2/sites-available/000-default.conf file.

Types of Apache 2.4 Virtual Hosts - Name-Based, IP-Based, Port-Based

IP-Based Virtual Host : In IP-based virtual host setup, each of the website points to a unique IP address. Practically it is actually easier to understand, although difficult to configure. Normally we will not use this setup.

Port-Based : Port-Based Virtual Host is quite funny. The default port number for non-ssl HTTP is 80 and corresponding ssl HTTPS is 443. However, most web servers can be configured to operate on almost any port number; the range is actually huge; mainly for configuring control panel of web hosting or for some testing purpose. You can read the article How To Install Webmin System Administration Panel on Rackspace Cloud, you will see that we are asking you to point towards :

Vim
1
https://your-pulic-net-ip:10000/

in order to access control panel. Very nicely explained on Official website :

Vim
1
http://httpd.apache.org/docs/2.2/vhosts/examples.html

Tagged With what is virtual hosting in apache , apache name-based virtual host 2 4 , apache different name ip , apache 24 virtual host samples , apache 2 4 virtualhost require IP , apache 2 4 virtual hosts , apache 2 4 virtual host example , apache 2 4 virtual host allow ip range to access , apache 2 4 virtual host , apache 2 4 host name lookup ttl
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Types of Apache 2.4 Virtual Hosts : Name-Based, IP-Based, Port-Based

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Set Up IP-based Virtual Hosts in Nginx Ubuntu Cloud Server

    Here are simple steps to set up IP-based Virtual Hosts in Nginx running Ubuntu. IP-based Virtual Hosts will help to use two IP addresses on one server.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy