You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Günter Knauf <ef...@gmx.net> on 2002/06/21 14:55:07 UTC
[PATCH] Apache2 httpd.conf /2
Hi,
I've been asked now a couple of times for a configuration sample for mod_deflate; and since mod_deflate is now a 'normal' module and no more experimental I think there should be a sample in the httpd.conf; if you dont think so at least a sample as below should appear in the docs to mod_deflate...
Ian, do you think the sample is ok so?
--- httpd-win.conf.orig Fri Jun 21 14:26:30 2002
+++ httpd-win.conf Fri Jun 21 14:44:40 2002
@@ -169,6 +169,7 @@
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
+#LoadModule deflate_module modules/mod_deflate.so
#LoadModule ssl_module modules/mod_ssl.so
#
@@ -948,3 +949,24 @@
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
+
+#
+# Configuration for mod_deflate
+<IfModule mod_deflate.c>
+ # DeflateFilterNote - Set a note to report on compression ratio
+ DeflateFilterNote deflate_ratio
+ LogFormat "%h %l %u %t \"%r\" %>s %b mod_deflate: %{deflate_ratio}n pct." common_with_deflate_info
+ CustomLog logs/deflate.log common_with_deflate_info
+ # Set the Deflate window size (1-15)
+ DeflateWindowSize 10
+ # Set the Deflate Memory Level (1-9)
+ DeflateMemLevel 6
+ # Here is an example of enabling compression for the Apache documentation:
+ <Location "/manual">
+ SetEnv gzip-only-text/html 1
+ SetOutputFilter DEFLATE
+ </Location>
+</IfModule>
+# End of mod_deflate.
+
+
--- httpd-nw.conf.orig Fri Jun 21 14:29:15 2002
+++ httpd-nw.conf Fri Jun 21 14:46:07 2002
@@ -139,6 +139,7 @@
#LoadModule unique_id_module modules/uniqueid.nlm
#LoadModule usertrack_module modules/usertrk.nlm
#LoadModule vhost_alias_module modules/vhost.nlm
+#LoadModule deflate_module modules/deflate.nlm
#
# ExtendedStatus controls whether Apache will generate "full" status
@@ -948,3 +949,24 @@
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
+
+#
+# Configuration for mod_deflate
+<IfModule mod_deflate.c>
+ # DeflateFilterNote - Set a note to report on compression ratio
+ DeflateFilterNote deflate_ratio
+ LogFormat "%h %l %u %t \"%r\" %>s %b mod_deflate: %{deflate_ratio}n pct." common_with_deflate_info
+ CustomLog logs/deflate.log common_with_deflate_info
+ # Set the Deflate window size (1-15)
+ DeflateWindowSize 10
+ # Set the Deflate Memory Level (1-9)
+ DeflateMemLevel 6
+ # Here is an example of enabling compression for the Apache documentation:
+ <Location "/manual">
+ SetEnv gzip-only-text/html 1
+ SetOutputFilter DEFLATE
+ </Location>
+</IfModule>
+# End of mod_deflate.
+
+