nobody0
22.04.02, 18:48
Der Apache auf meinem Server komprimiert keine pdf- u. ps-Dateien, obwoh inch in der httpd.conf vom Apache folgendes habe:
bandwidthpulse 200000
BandWidthPulse 200000
bandwidth all 8952
Bandwidth all 8952
largefilelimit 1 8952
LargeFileLimit 1 8952
minbandwidth all 1492
MinBandWidth all 1492
# BandWidthDataDir /tmp/apachebw
BandwidthModule On
mod_gzip_temp_dir /tmp/apache/gzip
mod_gzip_on Yes
# although the minimum seems to be 300 with values < 300:
mod_gzip_minimum_file_size 254
mod_gzip_maximum_file_size 500000000
mod_gzip_maximum_inmem_size 500000000
mod_gzip_keep_workfiles No
mod_gzip_item_include file \.htm
mod_gzip_item_include file \.html
mod_gzip_item_include file \.ps
mod_gzip_item_include file \.eps
mod_gzip_item_include file \.pdf
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime httpd/unix-directory
# mod_gzip_item_exclude file \.css$
# mod_gzip_item_exclude file \.js$
# mod_gzip_item_exclude mime ^image/.*
# mod_gzip_item_exclude file "\.wml$"
# mod_gzip_item_exclude reqheader "User-Agent: Mozilla/4\.[0-9][0-9].*"
# mod_gzip_item_exclude reqheader "User-Agent: Mozilla/4\.[4-9][^0-9].*"
mod_gzip_dechunk yes
mod_gzip_add_header_count Yes
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n:%{mod_gzip_compressio n_ratio}npct." common_with_mod_gzip_info2
CustomLog /var/log/httpd/mod_gzip common_with_mod_gzip_info2
Wie bekomme ich es trotzdem hin, dass auch pdf- u. .ps-Dateien komprimiert werden? :confused:
bandwidthpulse 200000
BandWidthPulse 200000
bandwidth all 8952
Bandwidth all 8952
largefilelimit 1 8952
LargeFileLimit 1 8952
minbandwidth all 1492
MinBandWidth all 1492
# BandWidthDataDir /tmp/apachebw
BandwidthModule On
mod_gzip_temp_dir /tmp/apache/gzip
mod_gzip_on Yes
# although the minimum seems to be 300 with values < 300:
mod_gzip_minimum_file_size 254
mod_gzip_maximum_file_size 500000000
mod_gzip_maximum_inmem_size 500000000
mod_gzip_keep_workfiles No
mod_gzip_item_include file \.htm
mod_gzip_item_include file \.html
mod_gzip_item_include file \.ps
mod_gzip_item_include file \.eps
mod_gzip_item_include file \.pdf
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime "jserv-servlet"
mod_gzip_item_include handler "jserv-servlet"
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime httpd/unix-directory
# mod_gzip_item_exclude file \.css$
# mod_gzip_item_exclude file \.js$
# mod_gzip_item_exclude mime ^image/.*
# mod_gzip_item_exclude file "\.wml$"
# mod_gzip_item_exclude reqheader "User-Agent: Mozilla/4\.[0-9][0-9].*"
# mod_gzip_item_exclude reqheader "User-Agent: Mozilla/4\.[4-9][^0-9].*"
mod_gzip_dechunk yes
mod_gzip_add_header_count Yes
LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n:%{mod_gzip_compressio n_ratio}npct." common_with_mod_gzip_info2
CustomLog /var/log/httpd/mod_gzip common_with_mod_gzip_info2
Wie bekomme ich es trotzdem hin, dass auch pdf- u. .ps-Dateien komprimiert werden? :confused: