[clue] [Tech] Apache apxs

chris fedde chris at fedde.us
Mon Mar 14 15:17:19 MDT 2011


Your distro probably has the DSO support and perhaps a -dev version of
the package available.   As an aside, if this system is just the proxy
then it might be simpler to use an os that has the mod you want.

And it's not that big a deal to build and compile Apache yourself.
Once you have decided to deploy one kind of built from source package
the second is not nearly as hard as the first one was.

On Mon, Mar 14, 2011 at 2:55 PM, Mike Staver <staver at fimble.com> wrote:
> 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?
> _______________________________________________
> clue mailing list
> clue at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue
>


More information about the clue mailing list