Apache Server configuration support - mod_gzip: DECLINED:HAS_CE

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > mod_gzip: DECLINED:HAS_CE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_gzip: DECLINED:HAS_CE
Prasad

2007-01-22, 1:17 pm

HI all ,

I installed mod_gzip module in my apache ,
I added the following lines to httpd.ini file .

LoadModule gzip_module modules/mod_gzip.so
<IfModule mod_gzip.c>
# LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip:
%{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info1
LogFormat "%h %l %u %t \"%r\" %>s %b mod_gzip: %{mod_gzip_result}n
In:%{mod_gzip_input_size}n Out:%{mod_gzip_output_size}n
Ratio:%{mod_gzip_compression_ratio}npct." common_with_mod_gzip_info2
# LogFormat "%{mod_gzip_compression_ratio}npct." mod_gzip_info1
# LogFormat "%{mod_gzip_result}n In:%{mod_gzip_input_size}n
Out:%{mod_gzip_output_size}n Ratio:%{mod_gzip_compression_ratio}npct."
mod_gzip_info2
# CustomLog logs/gzip.log mod_gzip_info2
CustomLog logs/gzip.log common_with_mod_gzip_info2
mod_gzip_on Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 0
mod_gzip_keep_workfiles Yes
mod_gzip_temp_dir "/tmp"
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_include file \.css$
mod_gzip_item_include file \.js$
mod_gzip_item_exclude mime ^image/.*
mod_gzip_command_version mod_gzip_version
mod_gzip_dechunk Yes
</IfModule>
# End of mod_gzip.

And apache is also running safely now ..


It's compressing .js files , .html files properly .

But ,
when I request .php pages,

*** *************(for some php pages ),
I found in "gzip.log" file that

59.162.197.108 - - [22/Jan/2007:18:17:00 +0530] "GET /home.php
HTTP/1.1" 200 13590 mod_gzip: DECLINED:HAS_CE In:0 Out:0 Ratio:0pct.

,and browser is displaying nothing .

I checked the response headers and content from web-sniffer.net , link
is :

http://web-sniffer.net/?url=http%3A...niffer%2F1.0.24

Headers seem to be okay , but it says that "Content (encoded: 10.63 KiB
/ decoded: 0.00 KiB)" and does n't show any content ..

*** *************( And for some other .php pages ),
I found in "gzip.log" file that

59.162.197.108 - - [22/Jan/2007:18:19:04 +0530] "GET
/teamkollab/groups.php HTTP/1.1" 302 12249 mod_gzip: DECLINED:HAS_CE
In:0 Out:0 Ratio:0pct.

, and IE browsers say "Page cant'be displayed" and mozilla browser is
asking to save the .php file (it's an empty file )

For the response headers and content from web-sniffer.net , the link
is


http://web-sniffer.net/?url=http%3A...b-Sniffer%2F1.0
.24
Headers and even the content seem to be okay .. it says "Content
(encoded: 1.96 KiB / decoded: 6.45 KiB)"
and shows the dynamic content . Though it shows the proper content, the
browser is unable to display it .



What could be the problem? , please help me ..


Thanks in adavnce

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com