Skip to content. | Skip to navigation

Navigation

Personal tools

Web Applications

This guide shows how to build several web applications and servers. The basic concept is that of an Apache 2 webserver fronting several application servers (such as Apache Tomcat and Plone). We'll be hosting several domains and handling SSL. To avoid unnecessary rebuilding we'll attempt to reuse existing infrastructure.

mod_macro

Apache configuration file macros

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