apache 2.4磁盘缓存没有写入cahce root

时间:2016-04-28 14:52:14

标签: caching disk apache2.4 mod

我使用以下配置完成了apache 2.4的设置

 ProxyPass      /       "http://localhost:9081/"
    ProxyPassReverse /     "http://localhost:9081/"
    <IfModule mod_cache.c>
            <IfModule mod_disk_cache.c>
            CacheRoot "/opt/apicache/"
            CacheDefaultExpire 3600
            CacheEnable disk "/"
            CacheDirLevels 2
            CacheDirLength 1
            CacheMaxFileSize 1000000
            CacheMinFileSize 1
            CacheIgnoreCacheControl On
            CacheIgnoreNoLastMod On
            CacheIgnoreQueryString Off
            CacheIgnoreHeaders None
            CacheLastModifiedFactor 0.1
            CacheDefaultExpire 3600
            CacheMaxExpire 86400
            CacheStoreNoStore On
            CacheStorePrivate On
            # Enable the X-Cache-Detail header
            CacheDetailHeader on
            </IfModule>
            </IfModule>

我也按照

更改了CacheRoot Permission
mkdir -p /opt/apicache/
chown root:www-data /opt/apicache/ -R
chmod 775 /opt/apicache/ -R

apache日志级别设置为debug

LogLevel debug

很不确定为什么apache 2.4没有缓存任何缓存根目录,也没有在错误日志中显示任何日志

1 个答案:

答案 0 :(得分:0)

确保apache可以写入fp.AddFont(defaultFont, PdfEncodings.IDENTITY_H);

/opt/apicache/