RE: Apache mod_autoindex and mod_deflate (gzip). Can't get pages compressed

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

 



Hi Rainer!

Thanks you again.

This is what I tried:

FilterDeclare	COMPRESS	
FilterProvider	COMPRESS	DEFLATE "%{CONTENT_TYPE} =~ m#text/html#"
FilterProvider	COMPRESS	DEFLATE "%{CONTENT_TYPE} =~ m#text\/html.*$#"
FilterProvider	COMPRESS	DEFLATE "%{CONTENT_TYPE} =~ m#text\/html\.*$#"
FilterChain		COMPRESS	gzip_compression
FilterProtocol	COMPRESS	DEFLATE change=yes;byteranges=no

And still the same. I.e. chunked content :(

Is my syntax incorrect and doesn't cover [Content-Type is 'text/html;charset=UTF-8'] header?

-----Original Message-----
From: Rainer Canavan [mailto:rainer.canavan+httpdusers@xxxxxxxxxx] 
Sent: 04 August 2020 13:39 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Apache mod_autoindex and mod_deflate (gzip). Can't get pages compressed

[...]
>         FilterProvider  COMPRESS        DEFLATE "%{Content_Type} = 'text\/html.*$'"

I don't think you can use regular expressions with just '=', you'll have to use '=~'

search 'regex' in the documentation at
https://httpd.apache.org/docs/2.4/expr.html for the exact syntax required.


rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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