This is more a note for myself than anything else ...By default a lot of php scripts will send emails that appear as coming from the Apache user, which makes tracking down a rogue script really annoying and time-consuming.You end up with entries in the mail logs similar to this one:Apr 27 18:22:29 servername postfix/qmgr[23581]: 0F53421C1FA: … [Read more...] about Logging Email From PHP Scripts
apache
Custom 404 Gone Mad
Niall pointed me at this.Nice, but insane! … [Read more...] about Custom 404 Gone Mad
Configuring Multiple Services on Port 80
Until yesterday evening I had never had any reason to configure multiple services on the same port, so I'd never had any reason to delve into the configuration changes to make this happen.In order to get this working you have to have more than one IP address available. In my case I have 3 assigned to the server in question. The main IP is used for serving most of the sites, … [Read more...] about Configuring Multiple Services on Port 80
Apache Mod_rewrite Tips
I picked up modrewrite.co.uk a while back, but wasn't 100% sure what to do with it.It's now been launched with Niall also providing content, so we'll see where it goes.... … [Read more...] about Apache Mod_rewrite Tips
mod_rewrite tricks
Mod_rewrite is an incredibly powerful tool and a lot of us would be very lost without it! A couple of quick "tricks" using mod_rewrite - partially to help myself find them again in the future: Redirecting domain.tld to www.domain.tld RewriteEngine On RewriteBase /RewriteCond %{HTTP_HOST} !^www.domain.tld$ [NC] RewriteRule ^(.*)$ http://www.domain.tld/$1 … [Read more...] about mod_rewrite tricks