[Mod_gzip] mod_gzip and virtual hosts

Russ Lavoie mod_gzip@lists.over.net
Thu, 6 Feb 2003 07:51:06 -0700


Michael,
I fixed the first problem no 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 name, 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 appriciated.

<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: Michael.Schroepl@telekurs.de [mailto:Michael.Schroepl@telekurs.de]

Sent: Thursday, February 06, 2003 2:48 AM
To: Russ Lavoie
Subject: Antwort: mod_gzip. Please help


Hi Russ,

> You don't know me, but I am using mod_gzip and am unable to figure out

> how to get mod_gzip to work on jakarta-tomcat pages. Is there a way?
it would be a good idea to mail such questions to the mod_gzip mailing
list:
http://lists.over.net/mailman/listinfo/mod_gzip
You will find me there again, but others as well, so more eyes can look
at your problem and more people can learn from your question.
(Especially as the mailing list is http-available and indexed by
GoogleBot ...)
> It works fine on the regular web pages just not when the page accessed

> is in the tomcat context.
Looks like your "include" rules don't match your requests. Details,
please ...
Regards, Michael