On Thu, 20 Dec 2001, Jeremy Howard wrote: Thank you, Jeremy. Here is some comments.
> OK, enough evangelism. On to practical matters. Many of the following > snippets and comments were provided to me by Igor in private email, so thank > him, not me. Firstly, here's how to compile everything (including mod_ssl on > the front-end) and install it into /usr/local/apache_accel: > ---- > tar -zxvf mod_accel-1.0.7.tar.gz > tar -zxvf mod_deflate-1.0.9.tar.gz > tar -zxvf mm-1.1.3.tar.gz > cd mm-1.1.3 > ./configure --disable-shared > make > > cd ../mod_ssl-2.8.5-1.3.22 > ./configure --with-apache=../apache_1.3.22_accel/ \ > --with-crt=/INSERT_APPROPRIATE_PATH.crt \ > --with-key=/INSERT_APPROPRIATE_PATH.key > > cd ../mod_accel-1.0.7 > ./configure --with-apache=../apache_1.3.22_accel/ \ > --with-eapi=../mod_ssl-2.8.5-1.3.22/pkg.eapi/ > make You don't need to use mod_ssl but you need EAPI distributed with mod_ssl. So if you don't use mod_ssl you need untar it only and set path to EAPI: cd ../mod_accel-1.0.7 ./configure --with-apache=../apache_1.3.22_accel/ \ --with-eapi=../mod_ssl-2.8.5-1.3.22/pkg.eapi/ make But if use mod_ssl then you can not to specify EAPI path - mod_ssl's configure set it on Apache source itself: cd ../mod_accel-1.0.7 ./configure --with-apache=../apache_1.3.22_accel/ make > cd ../mod_deflate-1.0.9 > ./configure --with-apache=../apache_1.3.22_accel/ > make > > cd ../apache_1.3.22_accel/ > EAPI_MM=../mm-1.1.3 SSLBASE=SYSTEM ./configure --enable-rule=EAPI \ > --prefix=/usr/local/apache_accel --disable-rule=EXPAT \ > --enable-module=most \ > --enable-module=rewrite \ > --activate-module=src/modules/accel/libaccel.a \ > --activate-module=src/modules/extra/mod_deflate.o > make > make install > > mkdir /var/accelcache > chown nobody:nobody /var/accelcache/ > /usr/local/apache_accel/bin/apachectl startssl > ---- > > Now, in /usr/local/apache_accel/conf/httpd.conf, append the following: > ---- > AccelCacheRoot /var/accelcache 1 > AccelNoCache on > AccelPass /mail/ http://127.0.0.1:8080/mail/ > AccelWaitBeforeBodyRead 100 > AccelUnlinkNoCached off > AccelSetXHost on > AccelSetXRealIP on > AccelSetXURL on > ---- > > This creates an HTTP accelerator without any caching. I don't know much > about the caching directives and haven't tried them out, so I can't provide > any guidance there. > > The AccelCacheRoot directive sets the number of levels of subdirectories in > the cache. 16 first level subdirectories named 0 .. f and 256 second level > subdirectories named 00 .. ff are used by default (i.e. "AccelCacheRoot > <path> 1 2"). Since I'm not caching, my config above does not specify any > directory hashing (i.e. "AccelCacheRoot <path> 1"). AccelCacheRoot allow to set up to 3 levels of two type subdirectories - named 0 .. f and 00 .. ff. Also AccelCacheRoot has parameter 'noauto' that specify do not create automaticaly all nested subdirectories. They shoud be created before with create_cache script. > Here's the config for mod_deflate: > ---- > DeflateEnable On > DeflateMinLength 3000 > DeflateCompLevel 1 > DeflateProxied Off This is default settings of DeflateCompLevel and DeflateProxied. > DeflateHTTP 1.0 > DeflateDisableRange "MSIE 4." > ---- > > DeflateProxied Off means that anything with a 'Via' header is not > proxied--Igor says that some proxies are broken so this is best to be safe. is not compressed > And MSIE 4 apparently is a bit broken too. By default only text/html is > compressed. DeflateCompLevel 1 provides adequate compression for text. Igor Sysoev