initial commit of file from CVS for smeserver-mod_deflate on Sat Sep 7 20:42:05 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:42:05 +10:00
parent 665799bd37
commit 6b978a3383
14 changed files with 527 additions and 2 deletions

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,8 @@
{
my $status = $modDeflate{status} || 'disabled';
if ( $status eq "enabled" )
{
$OUT = "LoadModule deflate_module modules/mod_deflate.so";
}
}

View File

@@ -0,0 +1,13 @@
{
my $status = $modDeflate{status} || 'disabled';
if ( $status eq "enabled" )
{
$OUT .= qq(
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog /var/log/httpd/deflate_log deflate
);
}
}

View File

@@ -0,0 +1,24 @@
{
my $status = $modDeflate{status} || 'disabled';
my $compression = $modDeflate{level} || '5';
if ( $status eq "enabled" )
{
$OUT .= qq(
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\\.0[678] no-gzip
BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html
DeflateCompressionLevel $compression
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png)\$ \\
no-gzip dont-vary
SetEnvIfNoCase Request_URI \\
\\.(?:exe|t?gz|zip|bz2|sit|rar|rpm)\$ \\
no-gzip dont-vary
SetEnvIfNoCase Request_URI \\.pdf\$ no-gzip dont-vary
);
}
}

View File

@@ -0,0 +1,11 @@
#/var/log/httpd/deflate_log {
# missingok
# daily
# size 1M
# rotate 10
# compress
# notifempty
# copytruncate
#
#}