You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/06/02 01:07:41 UTC

[Bug 53350] New: mod_cache caching 403 responses Apahce 2.2.22

https://issues.apache.org/bugzilla/show_bug.cgi?id=53350

          Priority: P2
            Bug ID: 53350
          Assignee: bugs@httpd.apache.org
           Summary: mod_cache caching 403 responses Apahce 2.2.22
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: gmillikan@t1shopper.com
          Hardware: Other
            Status: NEW
           Version: 2.2.22
         Component: mod_cache
           Product: Apache httpd-2

In the log file below we can see the 403 getting served at 11:33:09.  Then I
hold down the <shift> key and click refresh on the page using FireFox to send
the "Cache-Control: no-cache" request header to get a new copy of the page and
clean the server's cache and the page comes back with a 200 at 11:33:18. As
long as I don't send the no-cache request I can keep getting the same 403
response out of the cache. 

The cause of the 403 is problematic so I'll include it below.

How can I help you debug this?

 Here's the log file:
 [01/Jun/2012:11:33:09 -0700]    GET
/tools/calculate/file-size/result/?size=32&unit=kilobytes HTTP/1.1  403     302
    -
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0     -
 [01/Jun/2012:11:33:18 -0700]    GET
/tools/calculate/file-size/result/?size=32&unit=kilobytes HTTP/1.1  200    
3347    -
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0     


What's causing the 403? Apache is intermittently issuing a 403 "Directory index
forbidden by Options directive" but it never should.  For example the two
below links work fine.  But look at the log entry showing the 403 error. 
Crazy.  I cannot duplicate the error at all except when the 403 is already in
the cache 

http://www.t1shopper.com/tools/calculate/file-size/result?size=123456789&unit=kilobytes

http://www.t1shopper.com/tools/calculate/file-size/result/

Here's error log:
[Fri Jun 01 11:05:06 2012] [error] [client 71.256.256.256] Directory index
forbidden by Options directive:
/home/t1shopper/www/tools/calculate/file-size/result/

How can I help you debug this?

PS: We are Linux 2.6.18-308.4.1.el5 x86_64  CentOS release 5.8

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53350] mod_cache caching 403 responses Apahce 2.2.22

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53350

--- Comment #3 from Deepak N <en...@gmail.com> ---
I have tested this with 

Server version: Apache/2.4.9 (Unix)
Server built:   May  5 2014 17:22:05

The issue still exits. The documentations say 403 will not be cached, but it
doesn't seem to be the case. The config looks like this

CacheRoot /var/cache/mod_proxy
CacheEnable disk /openmrs/ws/rest/v1/concept

<Location /openmrs/ws/rest/v1/concept>
        ExpiresActive On
        ExpiresDefault "access plus 20 minutes"
</Location>

CacheDirLevels 5
CacheDirLength 3
CacheDefaultExpire 3600
CacheMaxExpire 86400
CacheIgnoreCacheControl On
CacheIgnoreHeaders Set-Cookie
CacheMaxFileSize 2000000

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53350] mod_cache caching 403 responses Apahce 2.2.22

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53350

--- Comment #2 from Geoff Millikan <gm...@t1shopper.com> ---
Although I'm not sure it's been explicitly addressed, we haven't experienced
this issue since we upgraded to Apache/2.2.26 so suggest closing this bug for
the time being.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 53350] mod_cache caching 403 responses Apahce 2.2.22

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53350

--- Comment #1 from Deepak N <en...@gmail.com> ---
Is there a fix or a work around for this issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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