Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding mod expire and mod gzip

Status
Not open for further replies.

samstone

Technical User
Feb 6, 2005
10
0
0
US
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 shuting it down when I reach my limet.
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 binery file mod_gzip.c and saved that?
server loads fast but now images load slower? Thanks for any help
on server boot
[Sun Feb 06 12:56:10 2005] [notice] jrApache[init] JRun 4.0 (Build 81731) Apache
module - Jul 22 2004 11:53:59
Apache/1.3.27 (Win32) JRun/4.0 mod_gzip/1.3.26.1a running...
here is the added files in httpd.conf
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$"
mod_gzip_item_exclude reqheader "User-Agent: .*Opera.*"
</IfModule>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top