[CentOS] Apache - mod_proxy

Fri Apr 7 08:59:12 UTC 2006
Will McDonald <wmcdonald at gmail.com>

On 06/04/06, Tom Brown <tom.brown at goodtechnology.com> wrote:
> This is really an apache question but if anyone knows offhand it would
> be nice to know...
>
> How do i build a standalone mod_proxy.so module that i can use to load
> into an apache install that has loadable module support compiled in?

mod_proxy's already built as a module in the default CentOS 4 Apache:

[wmcdonald at willspc ~]$ slocate mod_proxy 2> /dev/null
/usr/lib/httpd/modules/mod_proxy_http.so
/usr/lib/httpd/modules/mod_proxy_connect.so
/usr/lib/httpd/modules/mod_proxy_ftp.so
/usr/lib/httpd/modules/mod_proxy.so
/usr/include/httpd/mod_proxy.h
/usr/libexec/webmin/apache/mod_proxy.pl
[wmcdonald at willspc ~]$ rpm -qf /usr/lib/httpd/modules/mod_proxy.so
httpd-2.0.52-22.ent.centos4
[wmcdonald at willspc ~]$

All you would need to configure it would be the appropriate LoadModule
directives:

[wmcdonald at willspc ~]$ grep -i proxy /etc/httpd/conf/httpd.conf
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#<IfModule mod_proxy.c>
#ProxyRequests On
#<Proxy *>
#</Proxy>
#ProxyVia On
#   CacheRoot "/var/cache/mod_proxy"
# End of proxy directives.


Will.