Web Hosting Talk







View Full Version : mod_gzip not servicing domains


carpman
02-27-2002, 10:32 AM
I have installed mod_gzip, it is repoted as being installed and working by leknor.com

I checked gzip logs and found the entries below, i also added
CustomLog /home/domain/logs/mod_gzip.log full_plus_gzip
to domain with highist bandwidth, but it has recieved no entries>

start gzip logs--- ip changed---

127.0.0.1 - - [04/Feb/2002:16:17:21 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:16:25:41 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:16:34:05 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:16:42:25 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:16:50:45 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
64.7.145.109 - - [04/Feb/2002:16:56:46 +0000] "server.domain.net €"^A^C" 501 - mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Out:0:0pct.
127.0.0.1 - - [04/Feb/2002:16:59:05 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:17:07:26 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
127.0.0.1 - - [04/Feb/2002:17:15:46 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
250.177.21.10 - - [04/Feb/2002:17:16:36 +0000] "server.domain.net €+^A^C" 501 - mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Out:0:0pc$
127.0.0.1 - - [04/Feb/2002:17:24:06 +0000] "server.domain.net GET / HTTP/1.0" 200 2673 mod_gzip: DECLINED:UNHANDLED_SUBREQ In:0Ou$
77.74.16.127 - - [04/Feb/2002:17:27:04 +0000] "server.domain.net GET /scripts/root.exe?/c+dir HTTP/1.0" 404 - mod_gzip: DECLINED:$
77.74.16.127 - - [04/Feb/2002:17:27:05 +0000] "server.domain.net GET /MSADC/root.exe?/c+dir HTTP/1.0" 404 - mod_gzip: DECLINED:NO$
77.74.16.127 - - [04/Feb/2002:17:27:05 +0000] "server.domain.net GET /c/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 - mod_gzip: D$
77.74.16.127 - - [04/Feb/2002:17:27:05 +0000] "server.domain.net GET /d/winnt/system32/cmd.exe?/c+dir HTTP/1.0" 404 - mod_gzip: D$
77.74.16.127 - - [04/Feb/2002:17:27:05 +0000] "server.domain.net GET /scripts/..%255c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 4$
77.74.16.127 - - [04/Feb/2002:17:27:06 +0000] "server.domain.net GET /_vti_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.e$
77.74.16.127 - - [04/Feb/2002:17:27:06 +0000] "server.domain.net GET /_mem_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.e$
77.74.16.127 - - [04/Feb/2002:17:27:07 +0000] "server.domain.net GET /msadc/..%255c../..%255c../..%255c/..%c1%1c../..%c1%1c../..%$
77.74.16.127 - - [04/Feb/2002:17:27:07 +0000] "server.domain.net GET /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" $
77.74.16.127 - - [04/Feb/2002:17:27:08 +0000] "server.domain.net GET /scripts/..%c0%2f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" $
77.74.16.127 - - [04/Feb/2002:17:27:08 +0000] "server.domain.net GET /scripts/..%c0%af../winnt/system32/cmd.exe?/c+dir HTTP/1.0" $
77.74.16.127 - - [04/Feb/2002:17:27:08 +0000] "server.domain.net GET /scripts/..%c1%9c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" $
77.74.16.127 - - [04/Feb/2002:17:27:12 +0000] "server.domain.net GET /scripts/..%%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.0"$
77.74.16.127 - - [04/Feb/2002:17:27:12 +0000] "server.domain.net GET /scripts/..%%35c../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 4$
77.74.16.127 - - [04/Feb/2002:17:27:13 +0000] "server.domain.net GET /scripts/..%25%35%63../winnt/system32/cmd.exe?/c+dir HTTP/1.$
77.74.16.127 - - [04/Feb/2002:17:27:13 +0000] "server.domain.net GET /scripts/..%252f../winnt/system32/cmd.exe?/c+dir HTTP/1.0" 4$


all help appriciated

Tim Greer
02-28-2002, 11:03 PM
Are you running mod_mime and/or mod_negotiation? Check your core modules httpd -l and the loaded modules. It doesn't appear to be reading the MIME type properly, so it tossed it. If it doesn't work/show the page and you reload it, does it make any difference?

carpman
03-01-2002, 08:26 AM
Thanks for reply, yes we are running mod_mime and mod_negotiation, i tried commenting them out but httpd would not restart, reported error.

All pages load and display ok, it is just that they are not being compressed.


this is a real pain, it is on a cpanel.whm server and the tar file was from cpanel.net.

Not sure what you mean by httpd -l i tried this from consol but it reported command not found.


many thanks

carpman
03-01-2002, 09:15 AM
Update:
Hello Tim, yes i think you are right it being the mod_mime and mod_negotiation, but i have not been able to find a solution, i did find something about not having an index.html file in localhost doc root but having index.html.eng etc. I cp index.html.eng to localhost doc root as index.html but no change.


Here are my httpd conf entries

thanks for help

httpd.conf extracts
-------start------
# Note: The order in which modules are loaded is important. Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
LoadModule php4_module libexec/libphp4.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule jk_module libexec/mod_jk.so
LoadModule gzip_module libexec/mod_gzip.so


# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_frontpage.c
AddModule mod_log_bytes.c
AddModule mod_php4.c
AddModule mod_bwlimited.c
AddModule mod_jk.c
AddModule mod_gzip.c

---further on ---------
<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000

mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.cgi$
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 file "\.wml$"
mod_gzip_item_exclude file authorizationRequired.shtml
mod_gzip_item_exclude file fileNotFound.shtml
mod_gzip_item_exclude file internalServerError.shtml
mod_gzip_item_exclude file forbidden.shtml

</IfModule>