Web Applications
mod_macro
mod_macro is a simple Apache module that lets you cut down on the repetitive nature of configuration files for very similar setups. As we'l be hosting several domains all of which operate almost identically we can make good use of mod_macro.
If you like typing then don't bother!
Note
apxs embeds values for CC and CFLAGS (amongst others) in itself which, given we're using Sun's instance of Apache, we need to override.
The current values for CC and CFLAGS are revealed by:
.../apxs -q CC
Note
As we'll be installing this module in /usr/apache2 we need to do the final install as root.
cd .../mod_macro-1.1.6 # apxs will install in /usr/apache2/libexec so you need permission su /usr/apache2/bin/apxs -S CC=$(/usr/apache2/bin/apxs -q CC) -S CFLAGS="$(/usr/apache2/bin/apxs -q CFLAGS)" -c -i -a mod_macro.c
Document Actions