https://bugs.koozali.org/show_bug.cgi?id=12076

            Bug ID: 12076
           Summary: smeserver-mod_deflate missing Match sections for
                    DEFLATE
    Classification: Contribs
           Product: SME Contribs
           Version: 10.0
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-mod_deflate
          Assignee: contribteam@lists.contribs.org
          Reporter: jcr...@safeandsoundit.co.uk
        QA Contact: contribteam@lists.contribs.org
  Target Milestone: ---

To get this to function correctly I had to add a section like this:

                <filesMatch "\\.(css|js|html|txt)\$">
                    SetOutputFilter DEFLATE
                </filesMatch>

So it looked like this:

cat /etc/e-smith/templates//etc/httpd/conf/httpd.conf/46DeflateConfig

{
    my $status = $modDeflate{status} || 'disabled';
    my $compression = $modDeflate{level} || '5';

    if ( $status eq "enabled" )
        {
                $OUT .= qq(
                SetOutputFilter DEFLATE

                BrowserMatch ^Mozilla/4 gzip-only-text/html
                BrowserMatch ^Mozilla/4\\.0[678] no-gzip
                BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html

                DeflateCompressionLevel $compression
                SetOutputFilter DEFLATE 
                SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png)\$ \\
                        no-gzip dont-vary 
                SetEnvIfNoCase Request_URI \\
                        \\.(?:exe|t?gz|zip|bz2|sit|rar|rpm)\$ \\
                        no-gzip dont-vary 
                SetEnvIfNoCase Request_URI \\.pdf\$ no-gzip dont-vary
                <filesMatch "\\.(css|js|html|txt)\$">
                    SetOutputFilter DEFLATE
                </filesMatch>
                );

        }
}


I imagine that may not be the correct solution - it enables it globally. It may
be better on a per ibay or domain setting?

I also note the original template has SetOutputFilter DEFLATE  set twice - I
guess a typo.

These are settings I found that we could incorporate as well:

DeflateCompressionLevel 7
DeflateMemLevel 8
DeflateWindowSize 10


https://httpd.apache.org/docs/current/mod/mod_deflate.html

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to