Top Nav

Clone RackSpace Cloud Files Container With TurboLift

turbolift is an absolutely brilliant utility for manipulating RackSpace Cloud Files.  With turbolift you can do things like:

  • Upload a directory, (recursively)
  • Upload a single file
  • Upload a local directory (recursively) and sync it with a Cloud Files Container
  • Download a Container to a local directory
  • Download changed objects from a Container to a local directory
  • Compresses a Local Directory, then uploads it
  • List all Containers
  • List all Objects in a Container
  • Delete an Object in a Container
  • Delete an entire Container
  • Clone one Container in one region to another Container in the same or Different Region.
  • Set Custom headers on Objects/Containers


So in this article I’m going to demonstrate how to clone a container.

Here’s the download link for turbolift:

On CentOS 6.5 the install is easy:

Now lets assume that we have a container on RackSpace Cloud Files name “devimages” and we want to copy or clone the contents of that container to another container named “prodimages”. Here’s the turbolift command:

The [SOURCE REGION] and [DESTINATION REGION] should be one of ’dfw’, ‘ord’, ‘iad’, ‘lon’, ‘syd’ or ‘hkg’.

turbolift is fast – it takes about 10 minutes to clone a 2GB container with 18K objects in the same region.


Increase Nginx Upload Limit On Server With Plesk Panel

From the Plesk Panel you can set the PHP upload_max_filesize at Website & Domains -> PHP Setting. But if you’re using Nginx then you may also need to configure Nginx to allow larger uploads. We saw errors like this in the /var/log/nginx/error_log:

To resolve the issue edit /etc/nginx/nginx.conf and set client_max_body_size by adding the highlighted line:



Lightweight 404 For Apple Touch Icons

Had a site recently that was complaining about bandwidth consumed by request for apple-touch-icon* files as described here:

The customized 404 page on the site was using about 55K bytes for each request. I added the following rewrite rule:

This results in about 500 bytes per request or a 100 fold reduction.

Of course a nicer solution would be add pretty touch icons to the site!




Fixing “504 Gateway Timeout” Errors On Plesk With Nginx

If your Plesk server is configured to run Nginx in from of Apache then you may encounter “504 Gateway Timeout” errors when executing long running PHP pages.  Nginx is acting as a reverse proxy for Apache. The “proxy_read_timeout” configuration setting in Nginx controls how long Nginx will wait for Apache to return a response. The default is 60 seconds which may be too short if you have a script that takes several minutes to run. To increase this timeout, just edit /etc/nginx/nginx.conf and add the highlighted line:

Don’t forget to restart Nginx after making the change.


Score An “A” On SSLLabs Server Test

Want an A on the SSLLabs server test?

For WHM/CPanel do this:

a. go to Service Configuration -> Apache Configuration -> Global Configuration and set “SSL Cipher Suite” to:

b. go to Service Configuration -> Apache Configuration -> Include Editor -> Pre Main Include and add the following lines:

For a standalone Apache server try these:

For Nginx try these lines:

If you get capped at a B due to TLS Compression support you can add:

For older Apache versions this setting may not be available. In this case you can edit the init script (/etc/init.d/httpd) and add this line:

Qualys has a blog post on this subject which provided the Apache and Nginx configs: 

This forum post provided the WHM/Cpanel config: