Having said that, the preferred future direction seems to be
ns_adp_compress:
http://sourceforge.net/tracker/index.php?
func=detail&group_id=3152&atid=353152&aid=1099613
Does this gzip option work with the AOLserver source in the current
CVS tree?
I tried it, and added the recommended config section:
> ns_section "ns/server/${servername}/adp/gzip"
> ns_param enabled on
> ns_param level 4
> ns_param minsize 0
and couldn't get a compressed result back with:
> curl -H "Accept-Encoding: gzip" http://londonmini
Which I think should work.
Digging in the source, I see references to config options "gzipmin"
and "gziplevel"
if (!Ns_ConfigGetBool(path, "gzip", &i) || i) {
servPtr->opts.flags |= SERV_GZIP;
}
if (!Ns_ConfigGetInt(path, "gzipmin", &i) || i <= 0) {
i = 4 * 1024;
}
servPtr->opts.gzipmin = i;
if (!Ns_ConfigGetInt(path, "gziplevel", &i) || i < 0 || i > 9) {
i = 4;
}
servPtr->opts.gziplevel = i;
-john
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.