top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between name based virtual hosting and IP based virtual hosting ?

+4 votes
692 views

Explain the scenario where name based virtual hosting seems useful ?

posted Jul 9, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In IP-based virtual hosting, you are running more than one web site on the same server machine, but each web site has its own IP address. In order to do this, you have to first tell your operating system about the multiple IP addresses. See my post on configuring multiple IP addresses on a single NIC . You also need to put each IP in your DNS, so that it will resolve to the names that you want to give those addresses .

In Name-based virtual hosting, you host multiple websites on the same IP address. But for this to succeed, you have to put more than one DNS record for your IP address in the DNS database. This is done using CNAME tag in BIND. You can have as many CNAME(s) as you like pointing to a particular machine. Of course, you also have to uncomment the NameVirtualHost section in httpd.conf file and point it to the IP address of your machine.

answer Dec 24, 2015 by Manikandan J
Similar Questions
+1 vote

I need to change a domain name example.com to www.example.com for example when i enter in the URL like example.com it should automatically redirects to www.example.com

For example enter the URL in browser algoosdigital.com it automatically redirects to www.algoosdigital.com

+2 votes

I'm trying to build Git hosting server for a group of people.

  1. I see there are Git hosting that give ability to users to create and manage their repositories. I want to give user ability to create and manage their repository only using http. But in the instruction of http protocol, user with write privileges must login in order to create the repositories.
    Is it can work with http protocol or it must be with ssh?

  2. I would like get recommendation about a software if exist. Is there any software, I can use, that give the ability to see weby and/or visually view status of repositories on the Git server, without cloning or pulling a snapshot from the git server to my local machine and without login to the git server?

0 votes

I'm really new to web development and only just learning php which is all very exciting, but I've hit a roadblock. I've created my first php website using XAMPP as a development environment, and it looks great, but now I'm
totally lost as to how to move it onto a remote server and actually put it on the web! I never thought this would be the hardest step for me! Can someone help me with the following questions...

  1. Which hosting company is the best bang for your buck/easiest to configure for php applications?

  2. Are there any good resources for learning how to get a website onto that server?

  3. What should I be using...SSH or SFTP and why?

  4. Anything else you think I should know about to make this step easier in the future?

Thanks for all the help!

+2 votes

I have purchased a domain xyz.com but no hosting. Can I forward a subdomain say photo.xyz.com to my flickr account having URL like flickr.com/photos/abcadjsakjda.

0 votes

Does anybody know if it makes a difference to enable IP forwarding on the (linux) host? I know both works (enabled or disabled), but is there a good choice regarding the use of virtio_net inside the (linux) guests?

...