httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Bemerguy <thiagobemer...@gmail.com>
Subject Re: [users@httpd] mod_cache logging
Date Wed, 06 Mar 2013 13:20:21 GMT
yes

 # apachectl -t -D DUMP_MODULES | grep cache
 cache_module (shared)
 disk_cache_module (shared)
Syntax OK


2013/3/6 Igor Cicimov <icicimov@gmail.com>

>
>
>
> On Wed, Mar 6, 2013 at 11:55 PM, Thiago Bemerguy <thiagobemerguy@gmail.com
> > wrote:
>
>> Hello,
>>
>> I configured mod_cache and mod_disk_cache in my Apache Reverse Proxy, and
>> I want to check if the requests are being treated by the cache or sent to
>> the webserver, but I can't see any logs from Apache Cache modules, even the
>> cache files being generated in /var/cache/mod_disk_cache. How can I
>> configure mod_cache to generate logs?
>>
>> [httpd.conf]
>> LogLevel debug
>>
>> CustomLog logs/cached-requests.log common env=cache-hit
>> CustomLog logs/uncached-requests.log common env=cache-miss
>> CustomLog logs/revalidated-requests.log common env=cache-revalidate
>> CustomLog logs/invalidated-requests.log common env=cache-invalidate
>>
>> LogFormat "%{cache-status}e " cachelog
>>
>> CustomLog logs/cache.log cachelog
>>
>> [cache.conf]
>>
>> <IfModule mod_cache.c>
>>         <IfModule mod_disk_cache.c>
>>                 CacheDefaultExpire 3600
>>                 CacheEnable disk /
>>                 CacheRoot "/var/cache/mod_disk_cache"
>>                 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
>>         </IfModule>
>> </IfModule>
>>
>> Regards,
>>
>> --
>> Thiago Bemerguy
>> thiagobemerguy@gmail.com
>>
>
> Are your caching modules enabled at all in the config? LoadModule blabla
> ...
>



-- 
Thiago Bemerguy
thiagobemerguy@gmail.com

Mime
View raw message