Installation of mod_backhand

Download the usual gzipped tarball from http://www.backhand.org/mod_backhand/download/mod_backhand.tar.gz. Surprisingly, it is less than 100KB long and arrives in a flash. Make it a source directory next to Apache’s — we put it in /usr/wrc.mod_backhand. Ungzipping and detarring produces a subdirectory — /usr/wrc.mod_backhand/mod_backhand-1.0.1 with the usual source files in it.

The module is so simple it does not need the paraphernalia of configuration files. Just make sure you have a path to the Apache directory by running ls:

ls ../../apache/apache_x.x.x

When it shows the contents of the Apache directory, turn it into:

./precompile ../../apache/apache_x.x.x

This will produce a commentary on the reconfiguration of Apache:

Copying source into apache tree... Copying sample cgi script and logo into htdocs directory... Adding libs to Apache's Configure... Adding to Apache's Configuration.tmpl... Setting extra shared libraries for FreeBSD (-lm) Modifying httpd.conf-dist... Updating Makefile.tmpl... Now change to the apache source directory: ../../apache/apache_1.3.9 And do a ./configure... If you want to enable backhand (why would you have done this if you didn't?) then add: --enable-module=backhand --enable-shared=backhand to your apache configure command. For example, I use: ./configure --prefix=/var/backhand --enable-module=so \ --enable-module=rewrite --enable-shared=rewrite \ --enable-module=speling --enable-shared=speling \ --enable-module=info --enable-shared=info ...

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.