Download apache source to /usr/src

change directory to /usr/src/httpd-2.2.11/modules/filters/ and run the following command:

/usr/local/apache/bin/apxs -cia mod_substitute.c

 

Now open httpd.conf and check the following line:

LoadModule substitute_module modules/mod_substitute.so

You need to the following lines also to httpd.conf for the working of this module.

AddOutputFilterByType SUBSTITUTE text/html

Restart apache. done.