https://issues.apache.org/bugzilla/show_bug.cgi?id=53634
Priority: P2
Bug ID: 53634
Assignee: [email protected]
Summary: mod_cache returning HTTP 200 for nonexistent resources
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: 2.2.22
Component: mod_cache
Product: Apache httpd-2
IF a 404 ErrorDocument is configured within a URL range where mod_cache is
enabled
AND the error document was previously requested (and cached by mod_disk_cache)
THEN all subsequent responses to nonexistent resources return HTTP 200 instead
of the expected HTTP 404 response.
Example configuration:
###
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
CacheRoot /cache-root
CacheDirLevels 3
CacheDirLength 1
CacheMinFileSize 0
CacheMaxFileSize 1000000
CacheEnable disk /
ErrorDocument 404 /error.jpg
###
Assumptions:
/cache-root exists and is writable by httpd, initially empty contents.
/error.jpg exists within the document root directory.
To reproduce:
request "/error.jpg"
request any nonexistent resource, say, "/nonexistent".
NB Bug 49996 describes a very similar issue involving mod_proxy.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]