I'm running Apache 1.3 on Openbsd 4.8, I wish to operate a proxy server around the Apache, however, after i let the following line

LoadModule proxy_module /usr/lib/apache/modules/libproxy.so

in httpd.conf and restart the httpd server, it provides me with this error:

Cannot load /usr/lib/apache/modules/libproxy.so into server: File not found

I ensured the road to the .so file is correct. The Apache server is chrooted to /var/www, would that create this error?

Thanks ahead of time,


For solve this issue, you have to produce a Symlink within the chroot directory or copy your module within the apache chroot

# #Example:
# mkdir -p /var/www/usr/lib /var/www/usr/libexec
# cp /usr/lib/libc.so.57.0 /var/www/usr/lib
# cp /usr/libexec/ld.so /var/www/usr/libexec

After, you have to modify your apache configuration using the path within the chroot:

LoadModule proxy_module /usr/lib/libproxy.so

And reload the server.

# apachectl stop; apachectl start