[Mod_gzip] Virtual Hosts Don't Work
Russ Lavoie
mod_gzip@lists.over.net
Thu, 6 Feb 2003 08:44:40 -0700
This is a multi-part message in MIME format.
------_=_NextPart_001_01C2CDF6.A96CEC64
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
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=20
"mod_gzip_on No" to the config section of each Virtualhost you want to
turn off.
- Michael
</snip>
Thanks
Russ (The Frustrated one)
Russ Lavoie
Systems Operator
801-234-2627
russ_lavoie@morinda.com
=20
------_=_NextPart_001_01C2CDF6.A96CEC64
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial size=3D2>mod_gzip works successfully with the =
regular server=20
and tomcat webapps. It compresses and sends the encoded data, but when I =
try to=20
use a virtual host, mod_gzip doesn't work for any virtual host. I =
Included the=20
file /etc/mod_gzip.conf in my httpd.conf file. My questions is, how do I =
get=20
virtual hosts to work with mod_gzip? I have tried the following and =
didn't work=20
or maybe I just didn't understand how to do it. Can you enlighten me =
please?=20
Examples would be appreciated.</FONT></P>
<P><FONT face=3DArial size=3D2><snip></FONT></P>
<P><FONT face=3DArial size=3D2>I think I ran into this problem a few =
days ago,=20
although I didn't explore it fully. I had mod_gzip enabled for the =
entire server=20
with all its config info in the main server (i.e. not in a virtualhost =
at all).=20
I also had "mod_gzip_on No" set in several of my Directory entires and =
it worked=20
just fine.</FONT></P>
<P><FONT face=3DArial size=3D2>For some testing I changed those to =
"mod_gzip_on Yes"=20
and mod_gzip was turned off for those directories. Commenting out the=20
mod_gzip_on directive made mod_gzip start working for those=20
directories.</FONT></P>
<P><FONT face=3DArial size=3D2>My theory is that there's a bug that =
makes mod_gzip=20
see any mod_gzip_on directive that's not in the server congif as on =
"off"=20
directive. I don't know if this applies to other mod_gzip directives or =
not or=20
if this is even the correct diagnosis of the problem.</FONT></P>
<P><FONT face=3DArial size=3D2>I suggest that you try that tactic, =
though - enable=20
mod_gzip in your main server with all its config info there and then =
just add=20
</FONT></P>
<P><FONT face=3DArial size=3D2>"mod_gzip_on No" to the config section of =
each=20
Virtualhost you want to turn off.</FONT></P>
<P><FONT face=3DArial size=3D2>- Michael</FONT></P>
<P><FONT face=3DArial size=3D2></snip></FONT></P>
<P><FONT face=3DArial size=3D2>Thanks</FONT></P>
<P><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D805114215-06022003>R</SPAN>uss (The=20
Frustrated one)</FONT></FONT></P></DIV>
<DIV><I style=3D"mso-bidi-font-style: normal"><SPAN=20
style=3D"FONT-SIZE: 16pt; COLOR: blue; FONT-FAMILY: 'Monotype Corsiva'; =
mso-bidi-font-family: Arial">Russ=20
Lavoie<?xml:namespace prefix =3D o ns =3D =
"urn:schemas-microsoft-com:office:office"=20
/><o:p></o:p></SPAN></I></DIV>
<DIV align=3Dleft>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Systems=20
Operator<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">801-234-2627<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">russ_lavoie@morinda.com<o:p></o:p></SPAN></P></DIV>
<DIV> </DIV></BODY></HTML>
=00
------_=_NextPart_001_01C2CDF6.A96CEC64--