initial commit of file from CVS for smeserver-mod_deflate on Sat Sep 7 20:42:05 AEST 2024
This commit is contained in:
@@ -0,0 +1 @@
|
||||
9
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1,8 @@
|
||||
{
|
||||
my $status = $modDeflate{status} || 'disabled';
|
||||
if ( $status eq "enabled" )
|
||||
{
|
||||
$OUT = "LoadModule deflate_module modules/mod_deflate.so";
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
11
root/etc/logrotate.d/modDeflate
Normal file
11
root/etc/logrotate.d/modDeflate
Normal file
@@ -0,0 +1,11 @@
|
||||
#/var/log/httpd/deflate_log {
|
||||
# missingok
|
||||
# daily
|
||||
# size 1M
|
||||
# rotate 10
|
||||
# compress
|
||||
# notifempty
|
||||
# copytruncate
|
||||
#
|
||||
#}
|
||||
|
Reference in New Issue
Block a user