tags:

views:

122

answers:

3

Hi

I need to enable additional modules for apache eg, mod_proxy, mod_proxy-html, and mod_proxy_balancer.

Is there a way for me to do that without recompiling the whole apache?

Thanks

A: 

You need just to copy those modules to some directory on Your system/server, then add a command for appache in configure file.

ex:

LoadModule mod_proxy modules/mod_proxy.so  / linux
LoadModule mod_proxy modules/mod_proxy.dll  / windows

http://httpd.apache.org/docs/2.0/mod/mod_so.html#loadmodule

bua
A: 

If your apache is built with shared library support, then you could copy these modules from another machine(same OS, same/lower version and preferably same compiler) and place it in modules folder. Then use LoadModule directive to dynamically load it.

If you dont have the modules, you can download the source and build/install apache in a different directory (using --prefix) with option --enable-mods-shared=most. Copy the required modules to the original apache modules folder, and use LoadModule to load it.

Aviator
A: 

You can list the compiled in modules by executing

$ apache2 -l

Note: this is NOT /etc/init.d/apache2

If the module you need is not already compiled in, you will need to include it in the configuration file.

See here for a Debian/Ubuntu description.

pavium