Just restored a backup of a CQ5.5 staging server to a new Amazon EC2 instance in order to allow some people outside of the company shared access to what we are working on. CQ5 appears to be running correctly for the author and publish instances; I can see our site.
But the dispatcher in Apache is having trouble caching files, it seems. Apache can serve the URLs requested of it, but it fails to cache any of them, so that every requested is actually being serviced by the publish instance through the dispatcher. This is the dispatcher log showing the problem:
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Found farm pmlpublic for ec2-174-129-90-184.compute-1.amazonaws.com
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] checking [/content/public/individuals-families/financial-life/planning-strategies.html]
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] no cache due to authorization header.
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] cache-action for [/content/public/individuals-families/financial-life/planning-strategies.html]: NONE
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] connected to render rend01 (localhost:4503)
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Host
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Cache-Control
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: User-Agent
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Referer
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Encoding
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Language
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Accept-Charset
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Cookie
[Thu Oct 11 17:58:58 2012] [D] [820(139934505617152)] Spooling header: Via
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] Detected: chunked transfer encoding
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.status = 200
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Server] = "Day-Servlet-Engine/4.1.24 "
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Content-Type] = "text/html;charset=UTF-8"
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Date] = "Thu, 11 Oct 2012 17:58:59 GMT"
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] response.headers[Set-Cookie] = "JSESSIONID=e4bb6232-7726-4258-a724-f111ccf0eed9; Path=/; HttpOnly"
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] send http headers
[Thu Oct 11 17:58:59 2012] [D] [820(139934505617152)] Content length: -1, written: 54000
[Thu Oct 11 17:58:59 2012] [I] [820(139934505617152)] "GET /content/public/individuals-families/financial-life/planning-strategies.html" 200 53979 330ms
That "cache-action: NONE" is the issue.
I've checked permissions in the cache directory, and they match those of our staging servers - best I can tell. But nothing ever gets written to disk for caching.
I'm guessing that I am missing something obvious, and my gut tells me I've dealth with this before, but I just can't get it going. Any ideas?