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.

Endnotes:
  1. Rackspace Cloud Knowledge Base: http://help.rackspacecloud.com/
  2. explains how a vhost works: http://cloudservers.rackspacecloud.com/index.php/Introduction_to_Virtual_Hosts
  3. configure virtual hosts: http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts
  4. Cloud Servers: http://www.rackspacecloud.com/cloud_hosting_products/servers

Source URL: http://www.rackspace.com/blog/running-multiple-websites-on-a-cloud-server-with-1-ip/