Apache2

Apache2::Reload

Debian has moved Apache2::Reload to libapache2-reload-perl due to recent upstream changes to the release candidate of libapache2-mod-perl2 (2.0.4 rc1, "Works with Perl 5.10").

I discovered this as evatt.com went down for about ten minutes after a system upgrade because of the missing module.

Apache2::Reload reloads Perl modules that have been modified since the last time they have been used. It is invaluable when writing mod_perl code. For performance reasons, it is best practice to only use this module on development servers. I had forgotten I had configured this module into my Apache2 configuration. I should disable it on this server.

Apache2 Filters - Adding Google Analytics to all pages

This week I wanted to add java script based Google Analytics to my Apache 2.0 content on evatt.com. This included Joomla, Drupal, Squirrelmail, Nagios, Gallery, amongst other stuff. When I faced this problem a couple years ago with Apache 1.3, I was able to solve it using Apache::Sandwich. After some research, I discovered the Apache 2.0 solution is to make custom filters.

My solution had the following constraints. Since I had already added the Google Analytics code to some of my Joomla templates, the filter needed to be smart enough to only apply its self to pages that did not include the code. I am also inserting the code just before the close body tag </body>.

Syndicate content