w2k - apache & gzip modul

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • w2k - apache & gzip modul

    Hallo,

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

    wäre echt toll...


    cu

    edei

  • #2
    gzip

    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

    Kommentar

    Lädt...
    X