NTLM Authentication on Ubuntu and Apache2 Revisited

It’s been a while since I’ve had to build an NTLM integrated Apache2 server.
So I thought I’d take help from Ubuntu’s packages and install LAMP from there like most people seem to be doing these days.

Once all that is up and running, you will need to download mod_ntlm_winbind. Its an ancient package I complied years ago from the samba source tree, good news is it still works. Continue reading “NTLM Authentication on Ubuntu and Apache2 Revisited”

Firefox and NTLM Authentication

Firefox dislikes NTLM authentication really. Sometimes it hates it completely.
Specifically when you make AJAX requests from an NTLM authenticated server.

Fortunately, with a bit of counselling there is a resolution on hand. Continue reading “Firefox and NTLM Authentication”

.htaccess redirect based on requested domain

Imagine you have a selection of domain names that point to the same site, are some of those domains specific to certain areas of your site?

Here’s how I redirect a domain name to a specific area on a site
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?cubecartexperts\.co.uk
Rewriterule ^(.*)$ http://www.i9000networks.com/landing-page/cubecart-experts/ [L]
You’ll also need the domain set in your virtualhost config like this
ServerName www.i9000networks.com
ServerAlias www.cubecartexperts.co.uk
ServerAlias cubecartexperts.co.uk
It is a much more helpful way of helping your users navigate your site.

WordPress Secret Key & Cookie Strength

There is a little known feature in WordPress 2.5 called “Secret Key“. If you’re upgrading from a previous version you probably won’t even know this feature exists as it only appears in clean installs where you have a brand new wp-config.php. Continue reading “WordPress Secret Key & Cookie Strength”

Really freakin’ simple mysql virtual hosting pure-ftpd

This article will guide you through installing pure-ftpd configured for virtual hosts using mysql as the authentication mechanism. It assumes you have a functioning Linux server running mysql already. Continue reading “Really freakin’ simple mysql virtual hosting pure-ftpd”