My Experiments :
mod_proxify is a module that comes with apache, but it is not installed by default. The easiest way to install this is to add it as a dynamic module using the apxs tool. On a cPanel server, the apxs binary is located at /usr/local/apache/bin/apxs.
You will need to first check which version of apache is running for you. I am explaing this with reapect to Apache 2.2.4.
Download the tar file for apache from : http://mirrors.24-7-solutions.net/pub/apache/httpd/httpd-2.2.4.tar.gz
Untar it and enter the directory for modules/proxy :
tar -zxf httpd-2.2.4.tar.gz
cd httpd-2.2.4/modules/proxy/
Now, normally what we do is to to compile the mod_proxy.c with apache as :
/usr/local/apache/bin/apxs -i -a -c mod_proxy.c
But, this will not work and create an error when we start apache :
httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache2_2/modules/mod_proxy.so into server:
/usr/local/apache2_2/modules/mod_proxy.so: undefined symbol:
ap_proxy_location_reverse_map
The solution is to compile all the *.c modules in the proxy directory. However, there is another error waiting for you :
/usr/local/apache/bin/apxs -i -a -c *.c
apxs:Error: Sorry, cannot determine bootstrap symbol name.
The solution:
/usr/local/apache/bin/apxs -i -a -c -n proxy *.c
All set and you will see that the module will be compiles as module_proxify at your httpd.conf. Don't bother about the name; just check if it works.
Nikhil Thomas
Chief Consultant