httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34885] New: - Cache of '/' or Root Directory is broken.
Date Thu, 12 May 2005 05:51:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34885>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34885

           Summary: Cache of '/' or Root Directory is broken.
           Product: Apache httpd-2.0
           Version: 2.1-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chip@force-elite.com


When using a RewriteRule that matches the root, mod_cache will always serve the
cached version, and RewriteRule is never applied.  The RewriteRule is correctly
applied for _any_ location bellow /. (eg, /index.html or /css/).

Minimal Config Example:
<VirtualHost *:80>
ServerName foo.example.com
CacheEnable disk /
CacheRoot /tmp/cacheroot
CacheDirLevels 5
CacheDirLength 3
RewriteEngine On
# Some RewriteCond go here in real life.
RewriteRule /(.+) http://www.mozilla.org/products/firefox/upgrade/ [R=302,L]
</VirtualHost>

mod_cache.c used to have this code:
    /* DECLINE urls ending in / ??? EGP: why? */
    if (url[urllen-1] == '/') {
        return DECLINED;
    }

It seems that locations ending in / work correctly, (eg /css/), but only the
root / does not operate correctly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message