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 2005/12/22 22:09:43 UTC

DO NOT REPLY [Bug 38017] New: - mod_cache not working in reverse proxy setup?

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=38017>.
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=38017

           Summary: mod_cache not working in reverse proxy setup?
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Dick.Snippe@tech.omroep.nl


mod_cache does not serve cached content.
We'd like to use mod_cache + mod_disk_cache + mod_proxy + mod_proxy_ajp
as a reverse caching proxy.
The backend server (tomcat) sets all the right http headers (Expires,
Last-Modified) but apache refuses to serve cached content.
The same problem also shows up with mod_mem_cache and/or mod_proxy_http
Examination shows that entries are inserted into the cache using the hostname
"_default_". I assume this is because of the logic in cache_generate_key_default
in modules/cache/cache_storage.c 
However, cache lookups are done with the actual hostname. So, apache cannot find
the data it inserted on earlier requests.

Our setup is as follows:
./configure --prefix=/software/apache-2.2.0-cache --with-mpm=worker
--enable-cache --enable-mem-cache --enable-disk-cache --enable-proxy
--enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-rewrite
--enable-mods-shared=all

The relevant bits in the config file are:
ProxyPreserveHost       On
CacheDefaultExpire      60
CacheMaxExpire          3600
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod    On
CacheEnable             disk    /
CacheRoot               /e/fp/shrd02/tmp/cache
ProxyPass               /       ajp://shrd01as:8009/
ProxyPassReverse        /       ajp://shrd01as:8009/

BTW:
we use apache-2.0.X mod_mem_cache extensively. In the 2.0.X instances caching
works, so I'm quite surprised to encounter problems in 2.2. I assume I must be
doing something wrong, but can't figure out what.

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017


asg1290@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From asg1290@yahoo.com  2006-06-29 00:31 -------
I am still seeing these errors on 2.0.58 & 2.2.2 using mod_proxy for a reverse
proxy for RPC over HTTP and Exchange.  Downgrading to 2.0.54 fixes the problem,
maybe there are still some other occurences besides the ones patched here that
have not been fixed?  I also tried this on 2.2.2 and it didn't work either.

[Tue Jun 27 18:08:08 2006] [error] (70014)End of file found: proxy: prefetch
request body failed to 10.2.181.53 from 15.235.153.107 ()
[Tue Jun 27 19:07:46 2006] [error] (104)Connection reset by peer: proxy:
prefetch request body failed to 10.2.181.53 from 10.2.181.18 ()

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
           Keywords|                            |PatchAvailable
         Resolution|                            |FIXED




------- Additional Comments From rpluem@apache.org  2006-01-10 22:38 -------
Thanks for testing. The patch has been commited to trunk as r367798
(http://svn.apache.org/viewcvs.cgi?rev=367798&view=rev) and been proposed for
backport to 2.2.x as r367800
(http://svn.apache.org/viewcvs.cgi?rev=367800&view=rev).

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017





------- Additional Comments From rpluem@apache.org  2006-01-05 16:23 -------
Created an attachment (id=17342)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17342&action=view)
Patch proposal against trunk


-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017





------- Additional Comments From rpluem@apache.org  2006-01-06 10:34 -------
Oh I forgot: Thanks for the good analysis of the problem. That eased my search
for the cause very much.

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017





------- Additional Comments From Dick.Snippe@tech.omroep.nl  2006-01-10 14:51 -------
(In reply to comment #2)
> I can confirm that this is a regression. Could you please give the attached
> patch a try and let me know the results?

the patch works!
I tested all comninations of mod_mem_cache, mod_disk_cache and mod_proxy_http,
mod_proxy_ajp and it appears to work in all cases

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From rpluem@apache.org  2006-01-05 16:24 -------
I can confirm that this is a regression. Could you please give the attached
patch a try and let me know the results?

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017





------- Additional Comments From rpluem@apache.org  2006-02-04 22:39 -------
The patch has been backported to 2.2.x as r374931
(http://svn.apache.org/viewcvs.cgi?rev=374931&view=rev) and will be part of 2.2.1

-- 
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


DO NOT REPLY [Bug 38017] - mod_cache not working in reverse proxy setup?

Posted by bu...@apache.org.
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=38017>.
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=38017


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From rpluem@apache.org  2006-06-29 09:24 -------
Sorry, but your problem is completely unrelated to this bug.

-- 
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