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 09:25: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">
</head>
<body bgcolor="#ffffff" text="#000000">
I dont know why you need to use the &lt;Location&gt; &lt;/Location&gt;
Directive at all. See if the following works:<br>
<br>
In this section:<br>
<font face="Arial" size="2">&lt;Directory /&gt;<br>
&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&lt;/Directory&gt;<br>
<br>
</font>Change it to:<br>
<font face="Arial" size="2">&lt;Directory /&gt;<br>
&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp; SetOutputFilter DEFLATE<br>
&lt;/Directory&gt;</font><br>
<br>
and delete the Location section at the end.<br>
<br>
<br>
CC CHEN wrote:
<blockquote cite="mid001801c68f92$33a77ed0$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><font face="Arial" size="2">Here are my original httpd.conf
which is working using IP&nbsp; but not domain name.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">#######################################</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">ServerRoot "/opt/apache2.0.58"<br>
PidFile /opt/apache2.0.58/logs/httpd.pid<br>
ScoreBoardFile /opt/apache2.0.58/logs/httpd.scoreboard<br>
Timeout 300<br>
KeepAlive On</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">MaxKeepAliveRequests 100<br>
KeepAliveTimeout 15</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">MinSpareServers 5<br>
MaxSpareServers 10</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">StartServers 5</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">MaxClients 150</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">MaxRequestsPerChild 0</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">LoadModule was_ap20_module
/opt/IBM/WebSphere/Express51/AppServer/bin/mod_was_ap20_http.so<br>
WebSpherePluginConfig
/opt/IBM/WebSphere/Express51/AppServer/config/cells/plugin-cfg.xml</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Listen 80<br>
&lt;IfDefine SSL&gt;<br>
Listen 443<br>
&lt;/IfDefine&gt;<br>
ServerName linuxweb</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">User apache<br>
Group apache</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">ServerAdmin <a
 href="mailto:root@linuxweb">root@linuxweb</a></font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">DocumentRoot
"/opt/apache2.0.58/htdocs"</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<br>
&lt;/Directory&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&lt;Directory
"/opt/apache2.0.58/htdocs"&gt;<br>
&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks MultiViews<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp; Allow from all<br>
&lt;/Directory&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&lt;IfModule mod_userdir.c&gt;<br>
&nbsp;&nbsp;&nbsp; UserDir public_html<br>
&lt;/IfModule&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&lt;IfModule mod_dir.c&gt;<br>
&nbsp;&nbsp;&nbsp; DirectoryIndex index.html<br>
&lt;/IfModule&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">AccessFileName .htaccess</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&lt;Files ~ "^\.ht"&gt;<br>
&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&nbsp;&nbsp;&nbsp; Satisfy All<br>
&lt;/Files&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">UseCanonicalName On</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">#<br>
# TypesConfig describes where the mime.types file (or equivalent) is<br>
# to be found.<br>
#<br>
&lt;IfModule mod_mime.c&gt;<br>
&nbsp;&nbsp;&nbsp; TypesConfig /opt/apache2.0.58/conf/mime.types<br>
&lt;/IfModule&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">DefaultType text/plain</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&lt;IfModule mod_mime_magic.c&gt;<br>
&nbsp;&nbsp;&nbsp; MIMEMagicFile /opt/apache2.0.58/conf/magic<br>
&lt;/IfModule&gt;</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">HostnameLookups Off</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">ErrorLog
/opt/apache2.0.58/logs/error_log</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">#LogLevel warn<br>
LogLevel Error</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">DeflateFilterNote Input instream<br>
DeflateFilterNote Output outstream<br>
DeflateFilterNote Ratio ratio</font></div>
  <div>&nbsp;</div>
  <font face="Arial" size="2"></font>
  <div><font face="Arial" size="2"><br>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined<br>
LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" common<br>
LogFormat "%{Referer}i -&gt; %U" referer<br>
LogFormat "%{User-agent}i" agent<br>
LogFormat '%h %t "%r" %&gt;s %b %{outstream}n %{instream}n (%{ratio}n)'
deflate<br>
CustomLog /opt/apache2.0.58/logs/access_log deflate</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">ServerSignature On</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;IfModule mod_alias.c&gt;<br>
&nbsp;&nbsp;&nbsp; Alias /icons/ "/opt/apache2.0.58/icons/"<br>
&nbsp;&nbsp;&nbsp; &lt;Directory "/opt/apache2.0.58/icons"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes MultiViews<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; Alias /manual/
"/opt/apache2.0.58/htdocs/manual/"</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &lt;Directory
"/opt/apache2.0.58/htdocs/manual"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymlinks MultiViews<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; ScriptAlias /cgi-bin/
"/opt/apache2.0.58/cgi-bin/"</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &lt;Directory
"/opt/apache2.0.58/cgi-bin"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;<br>
&lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2"><br>
&lt;IfModule mod_autoindex.c&gt;<br>
&nbsp;&nbsp;&nbsp; IndexOptions FancyIndexing<br>
&nbsp;&nbsp;&nbsp; AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip<br>
&nbsp;&nbsp;&nbsp; AddIconByType (TXT,/icons/text.gif) text/*<br>
&nbsp;&nbsp;&nbsp; AddIconByType (IMG,/icons/image2.gif) image/*<br>
&nbsp;&nbsp;&nbsp; AddIconByType (SND,/icons/sound2.gif) audio/*<br>
&nbsp;&nbsp;&nbsp; AddIconByType (VID,/icons/movie.gif) video/*</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; AddIcon /icons/binary.gif .bin
.exe<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/binhex.gif .hqx<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/tar.gif .tar<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/a.gif .ps .ai .eps<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/layout.gif .html .shtml .htm .pdf<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/text.gif .txt<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/c.gif .c<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/p.gif .pl .py<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/f.gif .for<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/dvi.gif .dvi<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/uuencoded.gif .uu<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/tex.gif .tex<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/bomb.gif core</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; AddIcon /icons/back.gif ..<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/hand.right.gif README<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/folder.gif ^^DIRECTORY^^<br>
&nbsp;&nbsp;&nbsp; AddIcon /icons/blank.gif ^^BLANKICON^^</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; DefaultIcon /icons/unknown.gif</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; ReadmeName README<br>
&nbsp;&nbsp;&nbsp; HeaderName HEADER</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; IndexIgnore .??* *~ *# HEADER*
README* RCS CVS *,v *,t</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;IfModule mod_mime.c&gt;<br>
&nbsp;&nbsp;&nbsp; AddLanguage da .dk<br>
&nbsp;&nbsp;&nbsp; AddLanguage nl .nl<br>
&nbsp;&nbsp;&nbsp; AddLanguage en .en<br>
&nbsp;&nbsp;&nbsp; AddLanguage et .ee<br>
&nbsp;&nbsp;&nbsp; AddLanguage fr .fr<br>
&nbsp;&nbsp;&nbsp; AddLanguage de .de<br>
&nbsp;&nbsp;&nbsp; AddLanguage el .el<br>
&nbsp;&nbsp;&nbsp; AddLanguage he .he<br>
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-8 .iso8859-8<br>
&nbsp;&nbsp;&nbsp; AddLanguage it .it<br>
&nbsp;&nbsp;&nbsp; AddLanguage ja .ja<br>
&nbsp;&nbsp;&nbsp; AddCharset ISO-2022-JP .jis<br>
&nbsp;&nbsp;&nbsp; AddLanguage kr .kr<br>
&nbsp;&nbsp;&nbsp; AddCharset ISO-2022-KR .iso-kr<br>
&nbsp;&nbsp;&nbsp; AddLanguage nn .nn<br>
&nbsp;&nbsp;&nbsp; AddLanguage no .no<br>
&nbsp;&nbsp;&nbsp; AddLanguage pl .po<br>
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-2 .iso-pl<br>
&nbsp;&nbsp;&nbsp; AddLanguage pt .pt<br>
&nbsp;&nbsp;&nbsp; AddLanguage pt-br .pt-br<br>
&nbsp;&nbsp;&nbsp; AddLanguage ltz .lu<br>
&nbsp;&nbsp;&nbsp; AddLanguage ca .ca<br>
&nbsp;&nbsp;&nbsp; AddLanguage es .es<br>
&nbsp;&nbsp;&nbsp; AddLanguage sv .sv<br>
&nbsp;&nbsp;&nbsp; AddLanguage cs .cz .cs<br>
&nbsp;&nbsp;&nbsp; AddLanguage ru .ru<br>
&nbsp;&nbsp;&nbsp; AddLanguage zh-TW .zh-tw<br>
&nbsp;&nbsp;&nbsp; AddCharset Big5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Big5&nbsp;&nbsp;&nbsp; .big5<br>
&nbsp;&nbsp;&nbsp; AddCharset WINDOWS-1251 .cp-1251<br>
&nbsp;&nbsp;&nbsp; AddCharset CP866&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .cp866<br>
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-5&nbsp;&nbsp; .iso-ru<br>
&nbsp;&nbsp;&nbsp; AddCharset KOI8-R&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .koi8-r<br>
&nbsp;&nbsp;&nbsp; AddCharset UCS-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ucs2<br>
&nbsp;&nbsp;&nbsp; AddCharset UCS-4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ucs4<br>
&nbsp;&nbsp;&nbsp; AddCharset UTF-8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .utf8</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &lt;IfModule
mod_negotiation.c&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br
ru ltz ca es sv tw<br>
&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; AddType application/x-tar .tgz</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; AddEncoding x-compress .Z<br>
&nbsp;&nbsp;&nbsp; AddEncoding x-gzip .gz .tgz</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;IfModule mod_setenvif.c&gt;<br>
&nbsp;&nbsp;&nbsp; BrowserMatch "Mozilla/2" nokeepalive<br>
&nbsp;&nbsp;&nbsp; BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
force-response-1.0</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; BrowserMatch "RealPlayer 4\.0"
force-response-1.0<br>
&nbsp;&nbsp;&nbsp; BrowserMatch "Java/1\.0" force-response-1.0<br>
&nbsp;&nbsp;&nbsp; BrowserMatch "JDK/1\.0" force-response-1.0<br>
&lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;IfDefine SSL&gt;<br>
AddType application/x-x509-ca-cert .crt<br>
AddType application/x-pkcs7-crl&nbsp;&nbsp;&nbsp; .crl<br>
&lt;/IfDefine&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;IfModule mod_ssl.c&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">SSLPassPhraseDialog&nbsp; builtin<br>
SSLSessionCache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbm:/opt/apache2.0.58/logs/ssl_scache<br>
SSLSessionCacheTimeout&nbsp; 300<br>
SSLMutex&nbsp; <a class="moz-txt-link-freetext" href="file:/opt/apache2.0.58/logs/ssl_mutex">file:/opt/apache2.0.58/logs/ssl_mutex</a><br>
SSLRandomSeed startup builtin<br>
SSLRandomSeed connect builtin<br>
&lt;/IfModule&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">RewriteEngine on<br>
RewriteLog "/opt/apache2.0.58/logs/rewrite.log"<br>
RewriteLogLevel 9</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">RewriteCond %{REQUEST_METHOD} =TRACE<br>
RewriteRule ^ - [F]</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">RewriteCond %{HTTP_HOST}&nbsp;&nbsp;
^172.18.20.23<br>
RewriteRule ^ <a href="https://%%7BHTTP_HOST%7D/testweb/">https://%{HTTP_HOST}/testweb/</a>&nbsp;
[R]</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2"><br>
&lt;IfDefine SSL&gt;<br>
&nbsp;&lt;VirtualHost *:443&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;RewriteEngine on<br>
&nbsp;&nbsp;RewriteCond %{REQUEST_METHOD} =TRACE<br>
&nbsp;&nbsp;RewriteRule ^ - [F]</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;RewriteCond %{HTTP_HOST}&nbsp;&nbsp;
^172.18.20.23<br>
&nbsp;&nbsp;# exclude everything starting with /testweb/<br>
&nbsp;&nbsp;RewriteRule !^/testweb/ <a href="https://%%7BHTTP_HOST%7D/testweb/">https://%{HTTP_HOST}/testweb/</a>&nbsp;
[R]</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;DocumentRoot
"/opt/apache2.0.58/htdocs"<br>
&nbsp;&nbsp;ServerName 172.18.20.23<br>
&nbsp;&nbsp;ErrorLog /opt/apache2.0.58/logs/error_log<br>
&nbsp;&nbsp;<br>
&nbsp;&nbsp;DeflateFilterNote Input instream<br>
&nbsp;&nbsp;DeflateFilterNote Output outstream<br>
&nbsp;&nbsp;DeflateFilterNote Ratio ratio<br>
&nbsp;&nbsp;<br>
&nbsp;&nbsp;LogFormat '%h %t "%r" %&gt;s %b %{outstream}n %{instream}n
(%{ratio}n)'<br>
&nbsp;&nbsp;TransferLog /opt/apache2.0.58/logs/access_log<br>
&nbsp;&nbsp;ServerAdmin <a href="mailto:root@linuxweb">root@linuxweb</a><br>
&nbsp;&nbsp;ErrorLog /opt/apache2.0.58/logs/error_log<br>
&nbsp;&nbsp;TransferLog /opt/apache2.0.58/logs/access_log<br>
&nbsp;&nbsp;SSLEngine on<br>
&nbsp;&nbsp;SSLVerifyClient none<br>
&nbsp;&nbsp;#SSLVerifyClient optional<br>
&nbsp;&nbsp;SSLVerifyDepth 10<br>
&nbsp;&nbsp;SSLCipherSuite
ALL:!ADH:!EXPORT40:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL<br>
&nbsp;&nbsp;SSLCertificateFile /usr/local/ssl/CA/server/certificates/server.crt<br>
&nbsp;&nbsp;SSLCertificateKeyFile /usr/local/ssl/CA/server/keys/server.key<br>
&nbsp;&nbsp;SSLCACertificatePath /opt/apache2.0.58/conf/ssl.crt<br>
&nbsp;&nbsp;SSLOptions +ExportCertData +StdEnvVars<br>
&nbsp;&nbsp;#SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars
+StrictRequire<br>
&nbsp;&nbsp;&lt;Files ~ "\.(cgi|jsp|shtml|phtml|php3?)$"&gt;<br>
&nbsp;&nbsp;&nbsp;SSLOptions +ExportCertData +StdEnvVars<br>
&nbsp;&nbsp;&nbsp;#SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars
+StrictRequire<br>
&nbsp;&nbsp;&lt;/Files&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&lt;Directory
"/opt/apache2.0.58/htdocs"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks MultiViews<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br>
&nbsp;&nbsp;&lt;/Directory&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&lt;Directory
"/opt/local/apache1.3.29/cgi-bin"&gt;<br>
&nbsp;&nbsp;&nbsp;SSLOptions +StdEnvVars +ExportCertData<br>
&nbsp;&nbsp;&lt;/Directory&gt;<br>
&nbsp;&nbsp;SetEnvIf User-Agent ".*MSIE.*" \<br>
&nbsp;&nbsp;&nbsp;nokeepalive ssl-unclean-shutdown \<br>
&nbsp;&nbsp;&nbsp;downgrade-1.0 force-response-1.0<br>
&nbsp;&nbsp;CustomLog /opt/apache2.0.58/logs/ssl_request_log \<br>
&nbsp;&nbsp;&nbsp;"%v %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&nbsp;&nbsp;&lt;Location
/testweb/clientauth/&gt;<br>
&nbsp;&nbsp;&nbsp;SSLVerifyClient require<br>
&nbsp;&nbsp;&nbsp;SSLVerifyDepth 10<br>
&nbsp;&nbsp;&nbsp;SSLOptions +ExportCertData +StdEnvVars<br>
&nbsp;&nbsp;&lt;/Location&gt;<br>
&nbsp;&nbsp;<br>
&nbsp;&lt;/VirtualHost&gt;<br>
&lt;/IfDefine&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">&lt;Location /&gt;<br>
&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br>
&nbsp;&nbsp;&nbsp; AllowOverride None<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;# Insert filter<br>
&nbsp;<br>
&nbsp;# HTTP COMPRESSION<br>
&nbsp;SetOutputFilter DEFLATE<br>
&nbsp;<br>
&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<br>
&nbsp;<br>
&nbsp;# Make sure proxies don't deliver the wrong content<br>
&nbsp;#Header append Vary User-Agent env=!dont-vary<br>
&lt;/Location&gt;</font></div>
  <div><font face="Arial" size="2">&nbsp;</font></div>
  <div><font face="Arial" size="2">######################################</font></div>
  <div>&nbsp;</div>
  <div>----- Original Message ----- </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="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 3:52 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>
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">
      <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% 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>
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: 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>
---------------------------------------------------------------------
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>
        </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>
---------------------------------------------------------------------
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