• 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

This Article Has Been Shared 728 Times!

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

  • ReactOS : Windows Application Compatible Open Source OS

    ReactOS is a free operating system that is compatible with Microsoft Windows applications with the goal to complete binary compatibility for Microsoft Windows.

  • Desktop Virtualization with Oracle VirtualBox

    Desktop Virtualization provides a complete work environment. Custom configured operating system of the guest systems are stored on the host systems.

  • Multi-Core Processor Based Computer vs. Multi-CPU Computer

    Multi-Core Processor Based Computer vs. Multi-CPU Computer has differences. For Servers, Workstations the processors are multiple plus multi-core on one board.

  • Virtualization Softwares (VmWare Fusion,Parallel’s Desktop) vs Wine for Windows App on OS X

    Virtualization Softwares (VmWare Fusion,Parallel’s Desktop) vs Wine for Windows App on OS X – Quite Practical Question, No? Specially when Wine has Paid Softwares too.

  • What is Network Virtualization?

    Network Virtualization combines the hardware and software network resources and functionally converts to a single administrative entity.

Additionally, 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 (22.1K 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

  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022
  • Safe Chargers for Samsung Galaxy S22 Ultra June 27, 2022
  • How Telecoms Can Use The Cloud To Power Their 5G Network June 24, 2022
  • A Beginner Guide to Cloud Computing for Development June 22, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Types of Apache 2.4 Virtual Hosts : Name-Based, IP-Based, Port-Based," in The Customize Windows, March 31, 2014, July 1, 2022, https://thecustomizewindows.com/2014/03/types-of-apache-2-4-virtual-hosts-name-based-ip-based-port-based/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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