[Mod_gzip] Virutal Hosts still don't work

Russ Lavoie mod_gzip@lists.over.net
Mon, 10 Feb 2003 08:28:58 -0700


HELP!

mod_gzip works successfully with the regular server and tomcat webapps.
It compresses and sends the encoded data, but when I try to use a
virtual host, mod_gzip doesn't work for any virtual host. I Included the
file /etc/mod_gzip.conf in my httpd.conf file. My questions is, how do I
get virtual hosts to work with mod_gzip? I have tried the following and
didn't work or maybe I just didn't understand how to do it. Can you
enlighten me please? Examples would be appreciated.

<snip>

I think I ran into this problem a few days ago, although I didn't
explore it fully. I had mod_gzip enabled for the entire server with all
its config info in the main server (i.e. not in a virtualhost at all). I
also had "mod_gzip_on No" set in several of my Directory entires and it
worked just fine.

For some testing I changed those to "mod_gzip_on Yes" and mod_gzip was
turned off for those directories. Commenting out the mod_gzip_on
directive made mod_gzip start working for those directories.

My theory is that there's a bug that makes mod_gzip see any mod_gzip_on
directive that's not in the server congif as on "off" directive. I don't
know if this applies to other mod_gzip directives or not or if this is
even the correct diagnosis of the problem.

I suggest that you try that tactic, though - enable mod_gzip in your
main server with all its config info there and then just add 

"mod_gzip_on No" to the config section of each Virtualhost you want to
turn off.

- Michael

</snip>

Thanks

Russ (The Frustrated one)


-----Original Message-----
From: Berthold [mailto:b.tenhumberg@gmx.de] 
Sent: Monday, February 10, 2003 4:18 AM
To: mod_gzip@lists.over.net
Subject: [Mod_gzip] Where can I check the function ... (Update)


Hi there!

How can I check the function of mod_gzip running on a foreign server?

I tried different ways via telnet and lynx but I didn't get compressed
source where I should get. On that foreign server mod_gzip is working.

I did this:
 > telnet www.server.com 80

GET /test.php HTTP/1.1
CONNECTION: keep-alive
REFERER: http://www.server.com/
ACCEPT_ENCODING: gzip,deflate,compress;q=0.9
ACCEPT: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER_AGENT: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b)
Gecko/20030209
CACHE_CONTROL: max-age=0
ACCEPT_LANGUAGE: de,en;q=0.5
KEEP_ALIVE: 300
HOST: www.server.com



but mod_gzip does not accept the request. In the access.log I find:
mod_gzip: DECLINED:NO_ACCEPT_ENCODING

Why???
-- 
Berthold


_______________________________________________
mod_gzip mailing list
mod_gzip@lists.over.net http://lists.over.net/mailman/listinfo/mod_gzip