On Fri, Jul 31, 2020 at 9:01 PM eika from Ru-Board <eika.at.ruboard@xxxxxxxxx> wrote: > > Hi folks! > > I come across with issue I can't fix. I have Apache/2.4.43 OpenSSL/1.1.1g > with mod_autoindex (showing directory listings instead of index.html) and > with mod_deflate. > > I was able to get content gzipped, but only if they are files with > extensions (e.g. .css, .html, etc.) But when I want to get gzipped page > coming from mod_autoindex, I can't get it. E.g. https://domain.dom, > https://domain.dom/somedir/, https://domain.dom/test/, etc. These URLs comes > without Content-encoding: gzip header. > > I think that I am not far from the reason why, because I found that > directory indexes sent by chunks (transfer-encoding: chunked). But files > with extensions came with these headers: I suspect that you have simply configured mod_gzip to be only active for URLs ending in .html etc, and the transfer-encoding just happens to correlate with that because it's not a local "file" but generated dynamically. You should check the outgoing content-type instead of the URL. We've been using the following for quite some time: FilterProvider buffer BUFFER "%{CONTENT_TYPE} =~ m|^text/|" FilterProvider buffer BUFFER "%{CONTENT_TYPE} =~ m|^model/|" [... more content types ] FilterProvider gzip_compression DEFLATE "%{CONTENT_TYPE} =~ m|^text/|" FilterProvider gzip_compression DEFLATE "%{CONTENT_TYPE} =~ m|^model/|" [...] FilterChain buffer gzip_compression rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx