Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
w2k - apache & gzip modul [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
w2k - apache & gzip modul


 
edei
27-03-2002, 14:44 
 
Hallo,

kann mir jemand einen tipp geben, wie ich das gzip modul im apache 1.3.24 unter w2k zum laufen bringe? :confused:

wäre echt toll...


cu

edei

 
Bernd
06-04-2002, 21:40 
 
hier ein Auszug meiner httpd.conf.
Bei mir gehts so:
LoadModule gzip_module D:/apache/modules/ApacheModuleGzip.dll

################################################
# Directorys für mod_gzip
################################################
# MOD_GZIP CONFIGURATION DIRECTIVES
#These are the mod_gzip configuration directives that can be
#added to your existing Apache httpd.conf configuration file...

mod_gzip_on Yes
#Yes=mod_gzip will handle requests. No=mod_gzip is disabled.

mod_gzip_add_header_count Yes
#Yes=Add header byte counts to Common Log Format output total(s).

mod_gzip_keep_workfiles No
#Yes=Keep any work files used. No=Automatically delete any work files used.
#Only set this to 'Yes' for debugging purposes.

mod_gzip_dechunk Yes
#Yes=Allow removal of 'Transfer-encoding: chunked' when necessary.
#Certain 'Back-end' CGI processors such as PHP4 and ColdFusion are
#always returning responses using 'Transfer-Encoding: chunked'.
#In order for these responses to be compressed you should set this
#directive to 'Yes' which will allow mod_gzip to remove the
#'Transfer-Encoding: chunked' if/when it is necessary to do so.

#mod_gzip_min_http 1000
#Minimum HTTP protocol value to support. 1000 = HTTP/1.0 1001 = HTTP/1.1
#If a browser or User-Agent does not report itself as being capable
#of doing the 'minimum' HTTP level then no compression will be sent.
#The directive uses the same 'numeric' protocol numbers used internally
#by Apache itself.

mod_gzip_minimum_file_size 100
#Minimum size ( bytes ) of a file eligible for compression.

mod_gzip_maximum_file_size 0
#Maximum size ( bytes ) of a file eligible for compression.

mod_gzip_maximum_inmem_size 100000
#Maximum size ( bytes ) to use for in-memory compression.

mod_gzip_temp_dir c:\temp
#The directory to use for work files and compression cache.
#The directory must already exist and have the correct
#read/write permissions for the user/group name(s) used by
#the Server while it is running.
#Do not add a slash to the end of the directory pathname.

mod_gzip_item_include mime ^application/x-httpp-php
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.class$
mod_gzip_item_include file \.java$


#ARG1=[mime,handler,file,uri,reqheader,rspheader]
#ARG2=[Name of item to INCLUDE in list of things that should be compressed]

# mod_gzip_item_exclude ARG1 ARG2
#ARG1=[mime,handler,file,uri,reqheader,rspheader]
#ARG2=[Name of item to EXCLUDE from list of things that should be compressed]
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.jpg$
mod_gzip_item_exclude file \.mpg$
mod_gzip_item_exclude file \.mpeg$
mod_gzip_item_exclude file \.avi$
mod_gzip_item_exclude file \download.php$

#mod_gzip_command_version Ich
#User defined pickup string to use for mod_gzip version command.

#mod_gzip_can_negotiate Yes
#Yes=Negotiate/send static compressed versions of files No=Do not negotiate.

LogFormat "%h %l %u %t %U \"%r\" %>s %B %{mod_gzip_result}n In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n:%{mod_gzip_compression_ratio}npct. \"%{Referer}i\" \"%{User-Agent}i\"" combined

Bernd


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:05 Uhr.