How to install apache mod_proxy_html module on CentOS

by Eddy on

The apache mod_proxy_html module is output filter that can be used as gateway for internal application server on external web server. If a company running a application server appserver.abc.com visible to  internal network only and a public external facing website www.abc.com to make the the application server accessible at pubic url like http://www.abc.com/appserver.

In CentOS the mod_proxy_html is not installed by default, in order to install the mod_proxy_html module , first download the zip file (version 3.1.2).

Make sure gcc , libxml2 is and apxs is install on CentOS server, apxs (apache eXtension tool) is used for building and installing extension module . In tmp directory unzip the mod_proxy_html files


#unzip mod_proxy_html.zip
#apxs -c -I /usr/include/libxml2/ -I . -i mod_proxy_html.c

#chmod 755 /usr/lib64/httpd/modules/mod_proxy_html.so

confirm the module location as listed here and add the module in apache http.conf file:
#ls -l /usr/lib64/httpd/modules/mod_proxy_html.so
-rwxr-xr-x 1 root root 91211 2011-01-04 00:22 /usr/lib64/httpd/modules/mod_proxy_html.so

cd /etc/httpd/conf
edit the httpd.conf file and add the following entry
LoadModule proxy_html_module modules/mod_proxy_html.so
restart the apache server

#service httpd restart

News Tags:

{ 1 comment… read it below or add one }

Cosimo September 11, 2011 at 4:48 AM

I found serveral guides but most of them had wrong apxs command parameters. This guide is simple and directly going to the point! Thanks a lot!!!

Leave a Comment

Previous post:

Next post: