On 9/12/07, Graeme Walker <graeme.walker1@xxxxxxxxx> wrote: > Hi, > > I removed the SSL parts of the virtual host and changed the port to 80 and > the compression doesn't work. Please find below my config for the virtual > host both for port 80 and SSL > > Thanks for your help so far. > > Cheers > Graeme > > Normal VH > ======== > Listen 80 > > <VirtualHost *:80> > ServerName <domain> > DocumentRoot "D:/Website_Dev/cimage" > SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \ > no-gzip dont-vary > SetEnvIfNoCase Request_URI \ > \.(?:exe|t?gz|zip|bz2|sit|rar)$ \ > no-gzip dont-vary > SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary > AddOutputFilterByType DEFLATE text/html text/plain text/xml > text/javascript application/x-javascript application/xml > application/xhtml+xml > DeflateFilterNote Input instream > DeflateFilterNote Output outstream > DeflateFilterNote Ratio ratio > DeflateCompressionLevel 9 > LogFormat '%t %r %{outstream}n/%{instream}n (%{ratio}n%%)' deflate > CustomLog logs/deflate_main.log deflate > </VirtualHost> AddOutputFilterByType is not reliable with dynamic content. And in any case, since you have specific exclusions for everything you don't want gzipped, it doesn't seem necessary. You should just use SetOutputFilter DEFLATE Joshua. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx