Bug#940838: apache2: does not serve compressed svg (.svgz) by default

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#940838: apache2: does not serve compressed svg (.svgz) by default

Francesco Potortì
Package: apache2
Version: 2.4.41-1
Severity: minor

In order for Apache to correctly serve .svgz files one must add this

# Manage svgz
AddType image/svg+xml svg svgz
AddEncoding gzip svgz

I think these two lines should be there by default.

--
IPIN'19 http://ipin2019.isti.cnr.it    Voice:  +39.050.621.3058
Francesco Potortì (ricercatore)        Mobile: +39.348.8283.107
ISTI - Area della ricerca CNR          Skype:  wnlabisti
via G. Moruzzi 1, I-56124 Pisa         Web:    http://fly.isti.cnr.it


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=C:en_GB:en:en_US:it:fr:es (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apache2 depends on:
ii  apache2-bin    2.4.41-1
ii  apache2-data   2.4.41-1
ii  apache2-utils  2.4.41-1
ii  dpkg           1.19.7
ii  lsb-base       11.1.0
ii  mime-support   3.63
ii  perl           5.28.1-6
ii  procps         2:3.3.15-2+b1

Versions of packages apache2 recommends:
ii  ssl-cert  1.0.39

Versions of packages apache2 suggests:
ii  apache2-doc                     2.4.41-1
ii  apache2-suexec-custom           2.4.41-1
ii  chromium [www-browser]          76.0.3809.100-1
ii  elinks [www-browser]            0.13~20190125-3
ii  epiphany-browser [www-browser]  3.32.1.2-3
ii  firefox [www-browser]           69.0-1
ii  lynx [www-browser]              2.9.0dev.4-1
ii  w3m [www-browser]               0.5.3-37+b1

Versions of packages apache2-bin depends on:
ii  libapr1                1.6.5-1+b1
ii  libaprutil1            1.6.1-4+b1
ii  libaprutil1-dbd-mysql  1.6.1-4+b1
ii  libaprutil1-ldap       1.6.1-4+b1
ii  libbrotli1             1.0.7-2
ii  libc6                  2.29-1
ii  libcurl4               7.65.3-1
ii  libjansson4            2.12-1
ii  libldap-2.4-2          2.4.48+dfsg-1
ii  liblua5.2-0            5.2.4-1.1+b3
ii  libnghttp2-14          1.39.2-1
ii  libpcre3               2:8.39-12+b1
ii  libssl1.1              1.1.1c-1
ii  libxml2                2.9.4+dfsg1-7+b3
ii  perl                   5.28.1-6
ii  zlib1g                 1:1.2.11.dfsg-1+b1

Versions of packages apache2-bin suggests:
ii  apache2-doc                     2.4.41-1
ii  apache2-suexec-custom           2.4.41-1
ii  chromium [www-browser]          76.0.3809.100-1
ii  elinks [www-browser]            0.13~20190125-3
ii  epiphany-browser [www-browser]  3.32.1.2-3
ii  firefox [www-browser]           69.0-1
ii  lynx [www-browser]              2.9.0dev.4-1
ii  w3m [www-browser]               0.5.3-37+b1

Versions of packages apache2 is related to:
ii  apache2      2.4.41-1
ii  apache2-bin  2.4.41-1

-- Configuration Files:
/etc/apache2/apache2.conf changed:
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups On
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>
<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>
<Directory /home/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
        Require all denied
</FilesMatch>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf

/etc/apache2/conf-available/localized-error-pages.conf changed:

/etc/apache2/conf-available/other-vhosts-access-log.conf changed:
SetEnvIf Remote_Host "localhost" intra_site_referral
SetEnvIf Remote_Host "tucano.isti.cnr.it" intra_site_referral
SetEnvIf Remote_Host "vmlpot" intra_site_referral
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!intra_site_referral

/etc/apache2/mods-available/alias.conf changed:
<IfModule alias_module>
        # Aliases: Add here as many aliases as you need (with no limit). The format is
        # Alias fakename realname
        #
        # Note that if you include a trailing / on fakename then the server will
        # require it to be present in the URL.  So "/icons" isn't aliased in this
        # example, only "/icons/".  If the fakename is slash-terminated, then the
        # realname must also be slash terminated, and if the fakename omits the
        # trailing slash, the realname must also omit it.
        #
        # We include the /icons/ alias for FancyIndexed directory listings.  If
        # you do not use FancyIndexing, you may comment this out.
        # This one is more specific and should therefore come first.
        # Leaving it in conf-enabled/apache-gallery.conf would not work.
        Alias /icons/gallery/ /usr/share/libapache-gallery-perl/icons/
        Alias /icons/ "/usr/share/apache2/icons/"
        <Directory "/usr/share/apache2/icons">
                Options FollowSymlinks
                AllowOverride None
                Require all granted
        </Directory>
</IfModule>

/etc/logrotate.d/apache2 changed:
/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root www-data
        sharedscripts
        postrotate
                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
                fi;
        endscript
        prerotate
                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
                        run-parts /etc/logrotate.d/httpd-prerotate; \
                fi; \
                /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null
        endscript
}


-- no debconf information