Hi
I was trying to add mod_headers to my apache but could not get any help here.
I did a lot of reasearcha and found a simple way which does not require recompiling apache.
$:cd /home/cpapachebuild/buildapache/apache_1.3.29/src/modules/standard
$: /usr/local/apache/bin/apxs -c mod_headers.c
$:/usr/local/apache/bin/apxs -i -a -n headers mod_headers.so
this will compile and add the header to the apache along with adding the lines to httpd.conf
check httpd.conf by running
httpd configtest
If everything is fine
restart httpd by giving the command
thats it! Now mod_headers will work with your apache.
Generic Approach to add modules
Generic Instructions
Build and install a third-party Apache module, say mod_foo.c, into its own DSO mod_foo.so outside of the Apache source tree:
Build and install via apxs: $ cd /path/to/3rdparty
$ apxs -c mod_foo.c
$ apxs -i -a -n foo mod_foo.so



LinkBack URL
About LinkBacks
Reply With Quote





