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 Mon, 12 Jun 2006 13:14:44 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">
</head>
<body bgcolor="#ffffff" text="#000000">
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 http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <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%; -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: userslist.html="" httpd.apache.org="">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