Apache HTTP Proxy Cache_Disk funktioniert nicht

Gemeinsam ins Internet mit Firewall und Proxy.
Antworten
tohor
Beiträge: 2
Registriert: 17.01.2019 14:55:19

Apache HTTP Proxy Cache_Disk funktioniert nicht

Beitrag von tohor » 17.01.2019 15:20:15

Hallo,

der Cache vom Apache2 funktioniert nicht. Im Cache Verzeichnis liegt nie etwas und ich habe mir in den Logs den Cache Status eingeblendet, welcher immer ein Cache_Miss 1 ist.
Die nötigen Module wie proxy proxy_http proxy_connect cache cache_disk sind geladen.

Debian 9
4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
Apache 2.4.25

/etc/apache2/conf-enabled/cache_disk.conf

Code: Alles auswählen

<IfModule mod_cache_disk.c>
        CacheEnable disk http://
        CacheDirLevels 4
        CacheDirLength 2
        CacheDefaultExpire 3600
        CacheMaxFileSize 200000000
        CacheMaxExpire 604800
        CacheQuickHandler Off
        CacheRoot /var/cache/apache2/mod_cache_disk
	CacheDirLevels 2
	CacheDirLength 1
</IfModule>
/etc/apache2/conf-enabled/proxy.conf

Code: Alles auswählen

<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
</IfModule>
Besitzer/Gruppe von /var/cache/apache2/mod_cache_disk ist www-data mit 770 berechtigungen.

Hat hier jemand eine Idee woran das liegen könnte?

https://bugs.debian.org/442266
Daran sollte es eigentlich nicht mehr liegen oder?

tohor
Beiträge: 2
Registriert: 17.01.2019 14:55:19

Re: Apache HTTP Proxy Cache_Disk funktioniert nicht

Beitrag von tohor » 25.01.2019 17:07:59

Es ist ein Bug im Apache2 aus dem Stable tree. Mit dem Build aus dem Testing Repository klappt es ohne Änderungen sofort.

Antworten