Need advice adding modules in apache server (post here?)

By Samstoned
Feb 7, 2005
Topic Status:
Not open for further replies.
  1. my web page
    I have had a very simple server setup for bout 2 years .
    would like to save some bandwidth as my server is home based and my isp is
    shutting it down when I reach my limit.
    have added the following to my conf file
    but I am not sure it is right (I get no errors).
    ther is no mod_gzip.c file that I can find
    or gzip.so file so I loaded the mod_gzip.dll file
    I found the source file mod_gzip.c and saved that?
    server loads about the same. but now images load slower? Thanks for any help
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule gzip_module modules/ApacheModuleGzip.dll

    AddModule mod_expires.c
    AddModule mod_headers.c
    #AddModule mod_usertrack.c
    #AddModule mod_unique_id.c
    AddModule mod_so.c
    AddModule mod_setenvif.c
    AddModule mod_gzip.c

    ExpiresActive On
    <IfModule mod_expires.c>
    ExpiresByType txt/html M604800
    ExpiresByType image/gif A2592000
    </IfModule>
    # [ mod_gzip configuration ]

    <IfModule mod_gzip.c>
    mod_gzip_on yes
    mod_gzip_dechunk yes
    mod_gzip_keep_workfiles No
    mod_gzip_temp_dir c:\temp
    mod_gzip_minimum_file_size 200
    mod_gzip_maximum_file_size 0
    mod_gzip_maximum_inmem_size 1000000
    mod_gzip_item_include file \.gif$
    mod_gzip_item_include file \.jpg$
    mod_gzip_item_include file \.htm$
    mod_gzip_item_include file \.html$
    mod_gzip_item_include file \.cgi$
    mod_gzip_item_include mime text/.*
    mod_gzip_item_include file \.php$
    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_include handler "jakarta-servlet"
    mod_gzip_item_include mime "jakarta-servlet"
    mod_gzip_item_include file \.php$
    mod_gzip_item_exclude file "\.css$"
    mod_gzip_item_exclude file "\.js$"
    mod_gzip_item_exclude file "\.wml$"
    </IfModule>
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.