httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Tartarin" <jul...@sens-interdit.fr>
Subject [users@httpd] Caching reverse proxy with Apache 2.2
Date Thu, 28 Feb 2008 11:07:12 GMT
Hello,

I am currently setting up a caching reverse proxy server with Apache
2.2 : no problem to configure the reverse proxy, nor to configure data
caching.

However, as soon as the "source" server is unavailable, the reverse
proxy shows errors (service unavailable) instead of serving cached
content it already has.

I checked up options for the ProxyPass directive, without success. The
problem appears with dynamic content but also static content like
images that have a far-future Expire header on the source server.

My current configuration is (inside a virtual host block) :
> ProxyPreserveHost On
> ProxyPass / http://backend/ timeout=3
> ProxyPassReverse / http://backend/
> ProxyPassReverseCookieDomain backend public
> CacheRoot /home/webcache
> CacheEnable disk /
> CacheDirLevels 5
> CacheDirLength 3
> CacheIgnoreNoLastMod On
> CacheDefaultExpire 3600
> CacheMaxExpire 86400

Does anybody knows how to ask the reverse proxy to serve cached
content even when backend server is down ?

Thanks,
Julien

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message