httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel E <emmanue...@gmx.net>
Subject Re: [users@httpd] Pease help with mod_deflate configuration
Date Wed, 14 Jun 2006 07:52:38 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Are&nbsp; you having a proxy in the middle when you access the website using
the domain ? mod_deflate will compress the output only if the client
sends a accept gzip/zip content encoding.<br>
<br>
<br>
CC CHEN wrote:
<blockquote cite="mid01cc01c68f83$5ecabaf0$521412ac@chencc" type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <meta content="MSHTML 6.00.2800.1543" name="GENERATOR">
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Hi,</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I would just check the accesslog to
see whether compression is working :</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Error format :LogFormat '%h %t "%r"
%&gt;s %b %{outstream}n %{instream}n (%{ratio}n)' deflate</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">If NOT&nbsp;Working&nbsp;: </font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">172.18.20.82 [14/Jun/2006:15:10:24
+0800] "GET
/testweb/PublicServlet.do?chkBox=200500000019%E624%2F05%2F2006%E600000049
HTTP/1.1" 200 13342 - - (-)</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">If &nbsp;Working&nbsp;: </font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">172.18.20.82 [14/Jun/2006:15:12:29
+0800] "GET
/testweb/PublicServlet.do?chkBox=200500000019%E624%2F05%2F2006%E600000049
HTTP/1.1" 200 5176 5158 29048 (17)</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I already did as what u said, but
still cannot get it work.</font></div>
  <div><font face="Arial" size="2">By the way, the web site is https
site. </font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Regards.</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left:
5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial;
-moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family:
arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height:
normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a title="emmanuel.e@gmx.net" href="mailto:emmanuel.e@gmx.net">Emmanuel
E</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a title="users@httpd.apache.org"
 href="mailto:users@httpd.apache.org">users@httpd.apache.org</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Wednesday, June 14, 2006 1:18 PM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [users@httpd] Pease help with mod_deflate configuration</div>
    <div><br>
    </div>
no no dont mix &lt;Directory&gt; and &lt;Location&gt; directives.<br>
    <br>
Just do this:<br>
    <div><font face="Arial" size="2">##################</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">&lt;Directory /&gt;<br>
&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2"><br>
&nbsp;# Insert filter</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">&nbsp;# HTTP COMPRESSION<br>
&nbsp;SetOutputFilter DEFLATE</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">&nbsp;# Netscape 4.x has some
problems...<br>
&nbsp;BrowserMatch ^Mozilla/4 gzip-only-text/html<br>
&nbsp;# Netscape 4.06-4.08 have some more problems<br>
&nbsp;BrowserMatch ^Mozilla/4\.0[678] no-gzip<br>
&nbsp;# MSIE masquerades as Netscape, but it is fine<br>
&nbsp;# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br>
&nbsp;# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48<br>
&nbsp;# the above regex won't work. You can use the following<br>
&nbsp;# workaround to get the desired effect:<br>
&nbsp;BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br>
&nbsp;# Don't compress images<br>
&nbsp;SetEnvIfNoCase Request_URI \<br>
&nbsp;\.(?:gif|jpe?g|png)$ no-gzip dont-vary</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">&nbsp;# Make sure proxies don't deliver
the wrong content<br>
&nbsp;#Header append Vary User-Agent env=!dont-vary<br>
    <br>
    </font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">&lt;/Directory&gt;</font></div>
    <div>&nbsp;</div>
    <div><font face="Arial" size="2">#####################</font></div>
    <br>
this should work. how are you checking whether compression is working
or not?<br>
also check out <a class="moz-txt-link-freetext"
 href="http://httpd.apache.org/docs/2.2/sections.html">http://httpd.apache.org/docs/2.2/sections.html</a>
and <a class="moz-txt-link-freetext"
 href="http://httpd.apache.org/docs/2.2/mod/mod_deflate.html">http://httpd.apache.org/docs/2.2/mod/mod_deflate.html</a><br>
    <br>
CC CHEN wrote:
    <blockquote cite="mid00ea01c68f55$caf31c00$521412ac@chencc"
 type="cite">
      <meta content="MSHTML 6.00.2800.1543" name="GENERATOR">
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">Hi,</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">I need to solve my problem
urgently. Seem that I canont get the answer from here. Anybody know any
other mailinglist or news group for me to post my question? </font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">Deeply appreciate for your help.
Thanks.</font></div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <blockquote dir="ltr"
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left:
5px; margin-right: 0px;">
        <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
        <div
 style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial;
-moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family:
arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height:
normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
        <a title="cc.chen@fsd.com.my" href="mailto:cc.chen@fsd.com.my">CC
CHEN</a> </div>
        <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
        <a title="users@httpd.apache.org"
 href="mailto:users@httpd.apache.org">users@httpd.apache.org</a> </div>
        <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, June 13, 2006 8:36 AM</div>
        <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [users@httpd] Pease help with mod_deflate configuration</div>
        <div><br>
        </div>
        <div><font face="Arial" size="2">Hi,</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">Did you mean this :</font></div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">##################</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&lt;Directory /&gt;<br>
&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &lt;Location
/&gt;<br>
&nbsp;# Insert filter</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&nbsp;# HTTP COMPRESSION<br>
&nbsp;SetOutputFilter DEFLATE</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&nbsp;# Netscape 4.x has some
problems...<br>
&nbsp;BrowserMatch ^Mozilla/4 gzip-only-text/html<br>
&nbsp;# Netscape 4.06-4.08 have some more problems<br>
&nbsp;BrowserMatch ^Mozilla/4\.0[678] no-gzip<br>
&nbsp;# MSIE masquerades as Netscape, but it is fine<br>
&nbsp;# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br>
&nbsp;# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48<br>
&nbsp;# the above regex won't work. You can use the following<br>
&nbsp;# workaround to get the desired effect:<br>
&nbsp;BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br>
&nbsp;# Don't compress images<br>
&nbsp;SetEnvIfNoCase Request_URI \<br>
&nbsp;\.(?:gif|jpe?g|png)$ no-gzip dont-vary</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&nbsp;# Make sure proxies don't
deliver the wrong content<br>
&nbsp;#Header append Vary User-Agent env=!dont-vary<br>
&nbsp;&lt;/Location&gt; </font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">&lt;/Directory&gt;</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">#####################</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">This would give error message
"&lt;Location not allowed here".</font></div>
        <div>&nbsp;</div>
        <div><font face="Arial" size="2">And I tried to comment the
&lt;Location&gt; , no error message given. Anyway this doesn't work.</font></div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left:
5px; margin-right: 0px;">
          <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
          <div
 style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial;
-moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family:
arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height:
normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
          <a title="emmanuel.e@gmx.net" href="mailto:emmanuel.e@gmx.net">Emmanuel
E</a> </div>
          <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
          <a title="users@httpd.apache.org"
 href="mailto:users@httpd.apache.org">users@httpd.apache.org</a> </div>
          <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Monday, June 12, 2006 9:14 PM</div>
          <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [users@httpd] Pease help with mod_deflate configuration</div>
          <div><br>
          </div>
no no what i meant was put it in the section which says &lt;Directory
/&gt;. there should already be a &lt;Directory /&gt; section.<br>
          <br>
CC CHEN wrote:
          <blockquote cite="mid02aa01c68e11$63552330$521412ac@chencc"
 type="cite">
            <meta content="MSHTML 6.00.2800.1543" name="GENERATOR">
            <div><font face="Arial" size="2">Hi,</font></div>
            <div>&nbsp;</div>
            <div><font face="Arial" size="2">It doesn't work at all if
i replace &lt;Location /&gt; with &lt;Directory /&gt;</font></div>
            <div>&nbsp;</div>
            <div>&nbsp;</div>
            <div>&nbsp;</div>
            <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left:
5px; margin-right: 0px;">
              <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
              <div
 style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial;
-moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family:
arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height:
normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
              <a title="emmanuel.e@gmx.net"
 href="mailto:emmanuel.e@gmx.net">Emmanuel E</a> </div>
              <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
              <a title="users@httpd.apache.org"
 href="mailto:users@httpd.apache.org">users@httpd.apache.org</a> </div>
              <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Monday, June 12, 2006 6:58 PM</div>
              <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal;
font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [users@httpd] Pease help with mod_deflate configuration</div>
              <div><br>
              </div>
try putting it in the &lt;Directory&gt; container.<br>
              <br>
CC CHEN wrote:
              <blockquote
 cite="mid024101c68e0c$7c1af110$521412ac@chencc" type="cite">
                <meta content="MSHTML 6.00.2800.1543" name="GENERATOR">
                <style></style>
                <div><font face="Arial" size="2">Greeting,</font></div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2">I have put in the
deflate function in the httpd.conf as below. <br>
During testing, the compression is working when I access my web page
from internal IP address e.g.:<a class="moz-txt-link-freetext"
 href="http://x.x.x.x">http://x.x.x.x</a>.<br>
Anyway when I access the web page using domain name e.g.: <a
 href="http://my.web.com">http://my.web.com</a>, the compression is not
working by looking at the apache access log.</font></div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2">Can anyone help me to
figure what is wrong with my httpd.conf file. Thank you.</font></div>
                <div>&nbsp;</div>
                <div>&nbsp;</div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2">###############
httpd.conf<br>
...<br>
...<br>
&lt;Location /&gt;<br>
# Insert filter</font></div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2"># HTTP COMPRESSION<br>
SetOutputFilter DEFLATE</font></div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2"># Netscape 4.x has
some problems...<br>
BrowserMatch ^Mozilla/4 gzip-only-text/html<br>
# Netscape 4.06-4.08 have some more problems<br>
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br>
# MSIE masquerades as Netscape, but it is fine<br>
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br>
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48<br>
# the above regex won't work. You can use the following<br>
# workaround to get the desired effect:<br>
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br>
# Don't compress images<br>
SetEnvIfNoCase Request_URI \<br>
\.(?:gif|jpe?g|png)$ no-gzip dont-vary</font></div>
                <div>&nbsp;</div>
                <div><font face="Arial" size="2"># Make sure proxies
don't deliver the wrong content<br>
#Header append Vary User-Agent env=!dont-vary<br>
&lt;/Location&gt; <br>
###########################</font></div>
              </blockquote>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:HTTP: httpd.apache.org="" userslist.html="">for more
info. To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
" from the digest: <a class="moz-txt-link-abbreviated"
 href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>
              </URL:HTTP:></blockquote>
          </blockquote>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:HTTP: httpd.apache.org="" userslist.html="">for more
info. To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
" from the digest: <a class="moz-txt-link-abbreviated"
 href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>
          </URL:HTTP:></blockquote>
      </blockquote>
    </blockquote>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:HTTP: httpd.apache.org="" userslist.html="">for more
info. To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
" from
the digest: <a class="moz-txt-link-abbreviated" href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional
commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>
</URL:HTTP:></blockquote>
</blockquote>
</body>
</html>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message