Axel-Stephane SMORGRAV wrote:
> Could you possibly post the headers returned by \
> http://localhost:5050/cachetest/jsp/cacheable/main.jsp along with
your proxy \
> configuration directives?
After upgrading Apache from 2.2.4 to 2.2.6 the debug log looks a bit
different but the test page still doesn't get cached.
Now the debug log includes a "No such file or directory" entry.
Here're the cache and proxy settings:
CacheRoot /tmp/cacheroot
CacheEnable disk /cachetest/jsp/cacheable/
ProxyRequests Off
ProxyPass /cachetest ajp://127.0.0.1:8009/cachetest
ProxyPassReverse /cachetest ajp://127.0.0.1:8009
------------------------------------------------------------------------------
Request and response headers that the browser sees:
http://localhost:5050/cachetest/jsp/cacheable/main.jsp
GET /cachetest/jsp/cacheable/main.jsp HTTP/1.1
Host: localhost:5050
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11)
Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=DE3AA6392D4B4D02770465797300E97C
If-Modified-Since: Fri, 7 Dec 2007 14:00:00 GMT
Cache-Control: max-age=0
HTTP/1.x 200 OK
Date: Fri, 07 Dec 2007 19:35:25 GMT
Expires: Sat, 8 Dec 2007 14:00:00 GMT
Cache-Control: max-age=3600
Last-Modified: Fri, 7 Dec 2007 14:00:00 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 341
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
------------------------------------------------------------------------------
Here's the Apache debug log extract:
[Fri Dec 07 21:35:25 2007] [debug] mod_cache.c(131): Adding CACHE_SAVE
filter for /cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] mod_cache.c(138): Adding
CACHE_REMOVE_URL filter for /cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(44): proxy: AJP:
canonicalising URL //127.0.0.1:8009/cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(1412): [client
127.0.0.1] proxy: ajp: found worker ajp://127.0.0.1:8009/cachetest for
ajp://127.0.0.1:8009/cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy.c(819): Running scheme ajp
handler (attempt 0)
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_http.c(1683): proxy: HTTP:
declining URL ajp://127.0.0.1:8009/cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(520): proxy: AJP:
serving URL ajp://127.0.0.1:8009/cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(1852): proxy: AJP: has
acquired connection for (127.0.0.1)
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(1913): proxy: connecting
ajp://127.0.0.1:8009/cachetest/jsp/cacheable/main.jsp to 127.0.0.1:8009
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(2012): proxy: connected
/cachetest/jsp/cacheable/main.jsp to 127.0.0.1:8009
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(2169): proxy: AJP: fam 2
socket created to connect to 127.0.0.1
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(218): Into
ajp_marshal_into_msgb
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[0] [Host] = [localhost:5050]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[1] [User-Agent] = [Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy)
Firefox/2.0.0.11]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[2] [Accept] =
[text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[3] [Accept-Language] = [en-us,en;q=0.5]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[4] [Accept-Encoding] = [gzip,deflate]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[5] [Accept-Charset] =
[ISO-8859-1,utf-8;q=0.7,*;q=0.7]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[6] [Keep-Alive] = [300]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[7] [Connection] = [keep-alive]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[8] [Cookie] =
[JSESSIONID=DE3AA6392D4B4D02770465797300E97C]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[9] [If-Modified-Since] = [Fri, 7 Dec 2007
14:00:00 GMT]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[10] [Cache-Control] = [max-age=0]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(284):
ajp_marshal_into_msgb: Header[11] [Max-Forwards] = [10]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(424):
ajp_marshal_into_msgb: Done
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(201): proxy:
APR_BUCKET_IS_EOS
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(206): proxy: data to
read (max 8186 at 4)
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(221): proxy: got 0
bytes of data
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(646): ajp_read_header:
ajp_ilink_received 04
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(656): ajp_parse_type: got 04
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(485):
ajp_unmarshal_response: status = 200
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(496):
ajp_unmarshal_response: Number of headers is = 5
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(558):
ajp_unmarshal_response: Header[0] [Expires] = [Sat, 8 Dec 2007 14:00:00 GMT]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(558):
ajp_unmarshal_response: Header[1] [Cache-Control] = [max-age=3600]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(558):
ajp_unmarshal_response: Header[2] [Last-Modified] = [Fri, 7 Dec 2007
14:00:00 GMT]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(558):
ajp_unmarshal_response: Header[3] [Content-Type] = [text/html;charset=UTF-8]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(568):
ajp_unmarshal_response: ap_set_content_type done
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(558):
ajp_unmarshal_response: Header[4] [Content-Length] = [341]
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(646): ajp_read_header:
ajp_ilink_received 03
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(656): ajp_parse_type: got 03
[Fri Dec 07 21:35:25 2007] [debug] mod_cache.c(633): cache: Caching url:
/cachetest/jsp/cacheable/main.jsp
[Fri Dec 07 21:35:25 2007] [debug] mod_cache.c(639): cache: Removing
CACHE_REMOVE_URL filter.
[Fri Dec 07 21:35:25 2007] [debug] mod_cache.c(824): (2)No such file or
directory: cache: store_headers failed
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(646): ajp_read_header:
ajp_ilink_received 05
[Fri Dec 07 21:35:25 2007] [debug] ajp_header.c(656): ajp_parse_type: got 05
[Fri Dec 07 21:35:25 2007] [debug] mod_proxy_ajp.c(439): proxy: got
response from (null) (127.0.0.1)
[Fri Dec 07 21:35:25 2007] [debug] proxy_util.c(1870): proxy: AJP: has
released connection for (127.0.0.1)
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]