httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Lancaster <>
Subject [users@httpd] mod_proxy + mod_expires
Date Wed, 29 Apr 2009 01:22:38 GMT

I have a local cache (mod_disk_cache) of map tiles from OpenStreetMap
on my web server. My apache configuration pulls the tiles from using the following proxy settings:

ProxyPass /osmtiles/
ProxyPassReverse /osmtiles/ sets a very short Expires header on its tiles
(1 hour). I would like to lengthen the Expires to 1 week from access
date. Theoretically I can do this with mod_expires as follows:

<Location /osmtiles>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/png "access plus 1 week"


wget -S
--2009-04-29 08:18:51--
Connecting to||:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Wed, 29 Apr 2009 01:18:51 GMT
  Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny2 with Suhosin-Patch
  ETag: "a55eb96fa02faf171ebad269e96dec17"
  Content-Length: 12214
  Cache-Control: max-age=3872
  Expires: Wed, 29 Apr 2009 01:56:24 GMT
  Age: 1620
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: image/png
Length: 12214 (12K) [image/png]

I've searched a fair bit on this, and found a patch from
that adds directives to explicitly change headers on proxied content,
but I'd rather not maintain a patched apache if possible.
Other than that I found a 5-year-old bug that claims to be fixed.

Is anyone else using this combination, and successfully?



Director of Technology - The New Hanoian -
+84 904 343 601

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message