alfie: mod_deflate falsch konfiguriert?

Hallo!

Viele meiner Benutzer kommen aus Weltgegenden wo Bandbreite noch immer Mangelware ist. Daher in der .htaccess:

<FilesMatch ".(php|html|htm|xml|css|gss|js|txt|svg|csv|xls)$">
  SetOutputFilter DEFLATE
</FilesMatch>

Kompression nur wo sinnvoll (also nicht PDF, PNG, etc.)

In den Logfiles brav:
[debug] mod_deflate.c(615): [client XXX.XXX.XXX.XXX] Zlib: Compressed 33342 to 8417 : URL /foo.php

Jetzt die Seltsamkeit: komprimiert werden auch favicon.ico (von mir aus) und alle PDFs. Letzteres nervt, weil Gewinn höchstens 10% und dafür Verzögerung durch Serverlast. Vorschläge?

mfg Alfie

  1. hi,

    </FilesMatch>

    ob das die passende Direktive ist?

    .. Vorschläge?

    Location

    Hotti

    1. Hallo!

      Da war ich in meinem Titel unpräzise. Ich habe keinen Zugriff auf die Konfiguration des Indianers, sondern nur auf .htaccess.

      mfg Alfie

    2. Hallo!

      Wenn ich das Beispiel in der .htaccess verwende (Apache 2.2.9) bekomme ich einen 500er und im error-log:
      [alert] [client XXX.XXX.XXX.XXX] /www/.htaccess: <Location not allowed here, referer: http://example.org/foo.php

      Unelegant:
      <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/plain text/html text/xml text/csv text/gss
        AddOutputFilterByType DEFLATE text/css text/javascript
        AddOutputFilterByType DEFLATE application/x-httpd-php
        AddOutputFilterByType DEFLATE application/javascript application/x-javascript
        AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
        AddOutputFilterByType DEFLATE application/rss+xml
        AddOutputFilterByType DEFLATE application/msexcel
        AddOutputFilterByType DEFLATE image/svg
      </IfModule>

      Klappt; PDFs werden aber noch immer komprimiert (Tool: etwa http://bebac.at/lectures/Berlin2011.pdf)
      Warum bloß?

      mfg Alfie

      1. Tach,

        Klappt; PDFs werden aber noch immer komprimiert (Tool: etwa http://bebac.at/lectures/Berlin2011.pdf)
        Warum bloß?

        ich vermute mal mod_deflate ist global an (was ich auch als sinnvoll erachte) und deine bisherige Konfiguration ist nutzlos, weil du es nicht erst ausschaltest; soweit ich das sehe, ist das auch nicht nachträglich möglich.

        mfg
        Woodfighter

        1. Hallo!

          ich vermute mal mod_deflate ist global an (was ich auch als sinnvoll erachte)

          Ja sieht so aus.

          und deine bisherige Konfiguration ist nutzlos, weil du es nicht erst ausschaltest; soweit ich das sehe, ist das auch nicht nachträglich möglich.

          Ebenso. RemoveOutputFilterByType DEFLATE application/pdf führt zu einem 500er. Also mit dem Hoster reden.

          mfg Alfie

          1. Hi,

            RemoveOutputFilterByType DEFLATE application/pdf führt zu einem 500er.

            Gibt's diese Direktive denn überhaupt?

            RemoveOutputFilter wäre vielleicht erfolgversprechender.

            MfG ChrisB

            --
            RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?
            1. Hallo Chris!

              RemoveOutputFilter wäre vielleicht erfolgversprechender.

              Ahja! Gibt zwar keinen 500er (also bekannt), wird aber trotzdem ignoriert. Ich warte noch eine Rückmeldung des Hosters. Der trägt ohnehin Gürtel+Hostenträger - hat das Loglevel so hochgeschraubt, dass mir jede erfolgreiche (!) Kompression eine Zeile '[debug] blabla' beschert.

              mfg Alfie