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, we have an article that explains how a vhost works and a more technical post on how to actually configure virtual hosts. Please note the links are for Ubuntu, you can view a conclusive list of all operating systems.
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 or any of the Rackspace Cloud products, please catch us in live chat or give us a call at 1.877.934.0409.
Source URL: http://www.rackspace.com/blog/running-multiple-websites-on-a-cloud-server-with-1-ip/
Copyright ©2015 The Official Rackspace Blog unless otherwise noted.