Re: gzip compression only working with SSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Still no luck. This seems to be a weird error. I'm using mod_aspdotnet. I wonder if thats what is preventing the gzip compression for non SSL connections?

Cheers
Graeme

On 12/09/2007, Joshua Slive <joshua@xxxxxxxx> wrote:
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux