[Mongrel] [slightly offtopic] A small, fast Apache2.2 (if there is such a thing)

Dan Kubb dan.kubb at autopilotmarketing.com
Thu Aug 24 22:17:40 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Zack,

> Has anyone bothered building Apache2.2 from source disabling all the
> unneeded modules.

I spent one rainy afternoon going through every flag and explicitly
enabling or disabling each module in Apache 2.2 that I could find.  I
paired it down to the bare minimum to meet my needs.

I'll save you this pain.  Here's what my configure line in my Apache
installation script looks like:

./configure \
   --with-mpm=worker \
   --with-ssl \
   --enable-alias \
   --enable-cache \
   --enable-auth-basic \
   --enable-auth-digest \
   --enable-authn-anon \
   --enable-authn-default \
   --enable-authn-file \
   --enable-authz-default \
   --enable-authz-host \
   --enable-authz-user \
   --enable-dir \
   --enable-disk-cache \
   --enable-expires \
   --enable-mime \
   --enable-mem-cache \
   --enable-negotiation \
   --enable-deflate \
   --enable-http \
   --enable-headers \
   --enable-include \
   --enable-log-config \
   --enable-proxy \
   --enable-proxy-balancer \
   --enable-proxy-http \
   --enable-rewrite \
   --enable-setenvif \
   --enable-so \
   --enable-ssl \
   --enable-threads \
   --disable-actions \
   --disable-asis \
   --disable-authn-alias \
   --disable-authn-dbd \
   --disable-authn-dbm \
   --disable-authz-dbm \
   --disable-authz-groupfile \
   --disable-authz-ldap \
   --disable-authz-owner \
   --disable-autoindex \
   --disable-bucketeer \
   --disable-case-filter \
   --disable-case-filter-in \
   --disable-cern-meta \
   --disable-cgi \
   --disable-cgid \
   --disable-charset-lite \
   --disable-dav \
   --disable-dav-ds \
   --disable-dav-lock \
   --disable-distcache \
   --disable-dbd \
   --disable-dumpio \
   --disable-echo \
   --disable-env \
   --disable-example \
   --disable-ext-filter \
   --disable-file-cache \
   --disable-filter \
   --disable-index \
   --disable-indent \
   --disable-imagemap \
   --disable-imap \
   --disable-info \
   --disable-isapi \
   --disable-ldap \
   --disable-log-forensic \
   --disable-logio \
   --disable-mime-magic \
   --disable-nw-ssl \
   --disable-optional-fn-export \
   --disable-optional-fn-import \
   --disable-optional-hook-export \
   --disable-optional-hook-import \
   --disable-proxy-ajp \
   --disable-proxy-connect \
   --disable-proxy-ftp \
   --disable-speling \
   --disable-status \
   --disable-suexec \
   --disable-unique-id \
   --disable-userdir \
   --disable-usertrack \
   --disable-version \
   --disable-vhost-alias

While this works for my case, you may need a bit of tweaking for your
system -- I actually think there might be a few things in there I don't
need anymore too.

BTW I would highly encourage you to script out the apache installation
process while finding the right configuration.  It'll save you alot of
time if you have to repeat anything, and you'll have something that
can quickly and easily install apache when you move it into production.

- --

Thanks,

Dan
__________________________________________________________________

Dan Kubb
Autopilot Marketing Inc.

Email: dan.kubb at autopilotmarketing.com
Phone: 1 (604) 820-0212
Web:   http://autopilotmarketing.com/
vCard: http://autopilotmarketing.com/~dan.kubb/vcard
__________________________________________________________________



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)

iD8DBQFE7l3E4DfZD7OEWk0RAlC9AKCmKJ3K5J2nNu6MCEduQR+OP4kAMACgtAL/
2SWHiJYiskVAGtyG80dJddA=
=Q/pT
-----END PGP SIGNATURE-----


More information about the Mongrel-users mailing list