Category: Hosting

Drupal HTTPS images

Posted by on March 2, 2011 | No comments

I was involved with a project for a while which was using Drupal as the CMS. The entire site was being served over HTTPS, which was quite annoying as a large pile of the images that were being posted were being served over HTTP from their respective webservers. Naturally, this resulted in everyone getting very annoyed at their browser warning about loading unsecured content on a secure page.

So, I came up with this module. I’ve been meaning to release it for ages, but as I need to clear down the server it was running on it’s made me take the five minutes to write this post. Still needs a bit of work, but does what it says on the tin.

It identifies non-local images in content, downloads them and serves them from a local cache.

Download the module here: img_proxy.tar.gz

If you use Drupal, you should already know the drill – extract the file to your modules directory and enable it in the modules page. The module is implemented as an input filter, so you will then have to add it to the appropriate input formats at


  • Licenced under the GPL version 2.
  • *** There is nothing in the code that verifies the file being proxied is an image!! *** (that’ll be in the next version!)
  • May not work with sites that check the referer of the request for images.
  • I’ve been meaning to release this for ages, but there is sill a lot of debug code thats just commented out.

Hopefully I’m not the only webmaster that ever had this issue and somebody will find this handy.

Maybe one day I’ll tidy up the code and submit it to the Drupal Module repository!


Tags: , , , , ,

User VHosting

Posted by on August 30, 2006 | No comments

So, previously, I detailed how to do web virtual hosting to directories on the file system. This is all well and good, but I want to have users pidgeon holed into their own directories, plus I want users own websites to be stored under their own directories in a similar format to that used in the previous article (eg. /home/user/web/

The problem lies with mapping domain names ( onto user accounts (Alice? Bob?). This is where Apache and mod_rewrite come to the rescue again. On Wintermute I’ve installed Apache 2, but this recipe will work just as well with Apache 1.3. » Read the full post

Tags: , , , ,


Posted by on July 7, 2006 | 3 comments

So, to reiterate – the main server (Wist) will hold all my own stuff, then I’ll be creating a user Virtual Server (Wintermute) on top of that for users to play with and/or break. All the user stuff is backended in a Xoops database using Xoops groups.

Wist is installed with Debian Sarge using a custom kernel including the vserver patches from Debian. This sort of thing is detailed elsewhere so I won’t go over it again here.

The core server software (all from the Debian archive) will include: Apache 1.3 with PHP4, Apache-SSL, Bind, MySQL 4.1, Exim4, ClamAV and Dovecot (I’ll be detailing the email setup seperately) » Read the full post

Tags: , , , ,

Migratory changes…

Posted by on July 2, 2006 | No comments

Over the last 12 months I’ve become increasingly disenchanted with the value for money of the colo server I rent ( from Serversure. When I first took out the contract, it was the best there was, and as my bandwidth at the time was very low, 5Gb/month was an acceptable limitation.

Since then my bandwidth has gone over that fairly regularly. So I went shopping about. After a lot of time spend trying to convert € and $ into £ I eventually settled on the basic root server offering from 1&1 Internet ( The benefits? unlimited bandwidth and serial console access to the server – not to mention the spec is about double the memory and Mhz of Xev!

I’ve made a number of changes to the setup of Wist over Xev, with (hopefully!) no loss of services. Not least is the implementation of virtual servers. This has allowed me to let users run PHP scripts in a sandbox which won’t affect my own projects.

I’m going to attempt to detail the setup in stages as there are a number of things to cover – vservers, webservers & virtual hosting, database server, host access(ssh, ftp, etc.) – so hopefully I’ll be able to break them down in meaningful stages!


Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)