Running Multiple Websites on a Cloud Server with 1 IP

Filed in by Mike Mozey | August 23, 2010 9:52 am

One of the most commonly asked questions my team receives from customers and prospects is: Can I run multiple websites on a single IP? The answer is yes, you can.

For this example, I will use Apache web server. During the initial configuration of apache, you will need to manage your virtual host file, commonly referred to as vhost. For the techies out there this post will be basic, however, we get a BUNCH of questions around running multiple websites on a single server.

After configuring Apache and creating the root directories for your websites, you will access the vhost file for each domain hosted on your cloud server. This is where you let Apache know where it can find each domain’s root directory. My vhost file for this website looks like this:

It’s a relatively simple process. In our Rackspace Cloud Knowledge Base[1], we have an article that explains how a vhost works[2] and a more technical post on how to actually configure virtual hosts[3]. Please note the links are for Ubuntu, you can view a conclusive list of all operating systems here.

Now that you know its simple to host multiple domains on a single IP, you may still be wondering about additional IP’s. By default, you get 1 IP address per instance. If you need additional IP’s, justification is needed. That justification would need to be SSL requirements for unique IPs per domain. For this, you can get an additional 4 IPs per instance, for a total of 5. This total is per instance. If you need additional IPs above 5, you would need to provision additional instances.

I hope you found this information useful. If you have additional questions about Cloud Servers[4] or any of the Rackspace Cloud products, please catch us in live chat or give us a call at 1.877.934.0409.

  1. Rackspace Cloud Knowledge Base:
  2. explains how a vhost works:
  3. configure virtual hosts:
  4. Cloud Servers:

Source URL: