Skip to main content

Aegir HTTP basic authentication

An article from ComputerMinds - Building with Drupal in the UK since 2005
11th Nov 2010

Steven Jones

Senior Developer

Aegir is a system for managing sites using Drupal and drush. We use it to manage this site in fact.

However, we use a fairly old version. As a precursor to doing some more work on the backup management I wanted to get my head around the new version of Aegir, and the object orientedness.

There's a really useful tutorial over on the Aegir community site:
http://community.aegirproject.org/node/75
That shows you how to add options to Aegir sites and pass the information into the backend.

The tutorial mentions a possible real life use of implementing HTTP basic authentication on a site. Well, in an effort to understand Aegir more, I've coded it up, and you can now really easily specify HTTP basic authentication credentials for any site managed in Aegir. This is really useful for staging sites that you need to give clients access to, but don't want the entire world seeing.

You can see the code I wrote here:
https://github.com/computerminds/aegir_http_basic

And this is what it looks like in the Aegir UI:

Next up, backup management!

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.