星期二, 7月 03, 2007

[Linux]How to install mod_proxy_html in CentOS

  1. Visit mod_proxy_html office site to download source code, or get the latest source code in subversion. Here I checkout the latest sourc code (3.0):
    #svn co http://apache.webthing.com/svn/apache/filters/proxy_html/ mod_proxy_html
  2. Install necessary development packages:
    #yum install httpd-devel libxml2-devel
  3. Install in apxs:
    #apxs -I /usr/include/libxml2 -c -i mod_proxy_html.c
  4. Add necessary directives in httpd.conf:
    LoadFile /usr/lib/libxml2.so
    LoadModule proxy_html_module modules/mod_proxy_html.so
  5. Restart httpd. Done.


Reference:

4 則留言:

Chris Brind 提到...

Thank you! =)

匿名 提到...

THANK YOU SO MUCH!!

匿名 提到...

I needed to work a little harder:

yum --disablerepo updates install httpd-devel libxml2-devel
svn co http://apache.webthing.com/svn/apache/filters
cd filters/proxy_html apxs -I /usr/include/libxml2 -I ../filters -c -i mod_proxy_html.c

匿名 提到...

Thanks very much!