To compile a slim, modular Apache, use:
./configure --enable-mods-shared=all --with-mpm=prefork \But this raises an interesting question-- what if we actually want to statically compile some, but not all, modules? Maybe we want a dedicated proxy/balancer:
--disable-deflate
make; make install
/usr/local/apache2/bin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
./configure --enable-mods-shared=all --with-mpm=prefork \And that's what we are looking for. We'll need to get SSL on this puppy, but it's bed time, so go to sleep.
--disable-deflate --enable-proxy=static \
--enable-proxy-ajp=static --enable-proxy-balancer=static
make; make install
/usr/local/apache2/bin/httpd -l
Compiled in modules:
core.c
mod_proxy.c
mod_proxy_ajp.c
mod_proxy_balancer.c
prefork.c
http_core.c
mod_so.c
No comments:
Post a Comment