[clue] [Tech] Apache apxs

Mike Staver staver at fimble.com
Mon Mar 14 14:55:44 MDT 2011


I'm trying to set up a reverse proxy server, and I've found that some of
the URLs we run through it use static vs relative links to things like
images and videos. Thankfully, there is a cool new apache module called
mod_proxy_html which scans the HTML source and can replace various strings
for you. The config is easy enough and looks cool. The problem is that I'm
on CentOS 4 still, and this module is not built in. So, I downloaded it
and tried to compile it in:

[root at server ~]# wget
http://apache.webthing.com/mod_proxy_html/mod_proxy_html.zip
--14:38:02--  http://apache.webthing.com/mod_proxy_html/mod_proxy_html.zip
           => `mod_proxy_html.zip'
Resolving apache.webthing.com... 209.20.83.52
Connecting to apache.webthing.com|209.20.83.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27,934 (27K) [application/zip]

100%[================================================================>]
27,934       120.53K/s

14:38:03 (120.13 KB/s) - `mod_proxy_html.zip' saved [27934/27934]

[root at server ~]# unzip mod_proxy_html.zip
Archive:  mod_proxy_html.zip
   creating: mod_proxy_html/
  inflating: mod_proxy_html/mod_xml2enc.c
  inflating: mod_proxy_html/README
  inflating: mod_proxy_html/proxy_html.conf
  inflating: mod_proxy_html/mod_proxy_html.c
  inflating: mod_proxy_html/mod_xml2enc.h
  inflating: mod_proxy_html/COPYING
[root at server ~]# /home/httpd/bin/apxs -c -I /usr/include/libxml2/ -I . -i
mod_proxy_html.c
apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform. Make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary `/home/httpd/bin/httpd'.

Doh. My stock version of apache has no DSO support. Besides compiling
Apache from scratch myself on this machine, what are my options to enable
mod-so on this bad boy?


More information about the clue mailing list