What is the distinction between name-based and IP-based virtual hosting?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is the distinction between name-based and IP-based virtual hosting?

    Could you tell me about name-based and IP- based Virtual hosting

    #2
    Name-based and IP-based Virtual hosting:
    IP-based hosting: IP-based virtual hosting is a technique for applying different directives to requests based on their IP address and port. This is most typically used to deliver many websites on various ports or interfaces.
    Name-based hosting: The client's hostname is used in name-based virtual hosting. This saves IP addresses and the administrative overhead that comes with them, but the protocol being served must provide the hostname at some point.

    Comment


      #3
      As you just need to configure your DNS server to map each hostname to the relevant IP address and then configure the Apache HTTP Server to recognise the different hostnames, name-based virtual hosting is usually easier.

      Comment


        #4

        IP-based virtual hosts use the connection's IP address to decide which virtual host to serve. As a result, each host will require its IP address. The server relies on the client to report the hostname as part of the HTTP headers when using name-based virtual hosting.​

        Comment


          #5
          The most common type of Virtual Hosting is name-based Virtual Hosting. Virtual hosting with a name is used to serve several websites from the same IP address or port. In this case, the server relies on the client to include the hostname in the HTTP headers.

          Comment


            #6
            Which one is better?​

            Comment


              #7
              According to me, name-based hosting is much better.

              Comment


                #8
                How many types of virtual hostings are present with Apache?

                Comment


                  #9
                  Types of virtual hostings:

                  1. Apache Virtual Hosting in Linux.

                  2. Name Based Virtual Hosting.

                  3. IP Based Virtual Hosting.

                  4. Virtual Hosting: www.example1.com.

                  5. Virtual Hosting: www.example2.com.

                  Comment


                    #10
                    Virtual hosting is a means of hosting numerous domain names on a single server (each with its own set of rules) (or pool of servers). This enables a single server to share resources like memory and processing cycles without needing all services to use the same hostname.

                    Comment


                      #11
                      Ok. Thanks all.​

                      Comment

                      Working...
                      X