Updated : Feb 28, 2013 in Apache

Compiling an Apache module after Apache is been compiled

Sometimes one discovers a module which would be lovely to include in an already compiled Apache.
I’m using here an example of a vanilla Apache I compiled.
Source path of Apache: /www/src/
Path of compiled Apache: /www/apache/
Module to compile: proxy_http

Compiling the module:
cd /www/src/modules/proxy
/www/apache/bin/apxs -i -a -c mod_proxy_http.c

This will:
– Compile the module
– Install it in the proper modules directory of the compiled Apache
– Add the following line in the httpd.conf of the compiled Apache

LoadModule proxy_http_module modules/mod_proxy_http.so

1 Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: