Set up a static website with Cloud Files

  • Last updated on: 2018-10-24
  • Authored by: Nate Archer

If you want to host a static website, a site where the content does not change, you do not have to use a server. Instead, you can use the Rackspace Cloud Files service.

Create a Cloud File container to house your site

Use the following steps to create a Cloud File container to house your site:

  1. Log in to the Cloud Control Panel.

  2. In the top navigation bar, click Select a Product > Rackspace Cloud.

  3. Select Storage > Files.

  4. On the Cloud Files/Containers page, click Create Container.

  5. Type a name for your container and select the region where you want to host your site.

  6. Select the Static Website option and then click Create Container.

    Note: Selecting the Static Website option automates the following Cloud Files API operations: - Sets the index page to index.html for both the container and any pseudo directories within the container. - Sets your container to use CDN, so that users can retrieve your content faster.

  7. On the page for your container, click Upload Files.

  8. Select the files that contain your website and click Open.

    Note: Ensure that all of your static website files are included in the upload and in their correct folders.

Access your static website

Now your static website content is uploaded to your Cloud Files containers. However, to access your static website, you need the CDN URL.

  1. In the Cloud Control Panel, go to the Cloud Files/Containers list.

  2. Click the gear icon next to the name of your container and select View All Links.

    Note: All of the CDN URLs for your container are displayed. For HTML pages and pictures, use the HTTP link to access your static website. If you want to be securely connected to your site, use the HTTPS link.

Next Steps

If you want to make the URL of your static website more user friendly, you can set up a CNAME record with your Domain Name System (DNS) registrar. In order to do so, you need to copy the target (domain) from your static website container. To find your target, perform the following steps:

  1. In the Cloud Files/Containers list, click the gear icon next to your static website container and select View Website Settings.

  2. In the drop-down menu, copy the string in the Target (Domain) field.

  3. Go to your DNS registrar and point the CNAME to the domain that you copied. For instruction on how to complete this for the most popular DNS registrars, go to the following sites:

You can also create your own CNAME using the Rackspace DNS service. For instructions, see Create DNS Records for cloud servers with the Control Panel.

Share this information: