Article Sidebar mar2005.tar

Adding Modules

While the Expires and Headers modules are bundled with Apache versions 1.2 and higher, they are not part of the standard installation; you will have to explicitly add them. At configuration time, you can pass the following flags to the configure script to add the modules:

--enable-module=headers --enable-module=expires
If your Apache instance was compiled with DSO support, then you can add them after the fact. From inside the Apache source tree, run the apxs command to add the module. In the example below, our Apache instance was installed in /usr/local/apache:

cd /home/jeff/apache_1.3.31/src/modules/standard
/usr/local/apache/bin/apxs -a -i -n expires -c mod_expires.c
/usr/local/apache/bin/apachectl restart