You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "giovanni.formenti@libero.it" <gi...@libero.it> on 2009/02/04 12:31:51 UTC

[users@httpd] Apache Server as cache proxy

Hi,
we need to use Apache to cache an RSS feed and some images/documents for a Portal with heavy traffic. What we have to do is to proxy some requests that reply with an XML (RSS) and we also need to cache some request for media resources (JPG, PDF, etc) reached through an address contained in the RSS.
An example:
The request "http://host/context/rss1" return:
<rss>
[...]
  <item>
    <title>item1</item>
    <img>http://host/context/image.jpg</img>
  </item>
[...]
</rss>
We have to cache every response of "context" (the XML and the image.jpg) with a expiration time of 2 hours.

Do you have address of tutorial or advanced configuration of this kind of service?

Thank you in advance
Best regards
Gio


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


Re: [users@httpd] Apache Server as cache proxy

Posted by Ralf Peng <ra...@gmail.com>.
Though mod_cache + mod_proxy is well, but I'd suggest you use Squid
instead, and use mod_expire to set an expire time for objects.

Ralf.


2009/2/4 giovanni.formenti@libero.it <gi...@libero.it>:
> Hi,
> we need to use Apache to cache an RSS feed and some images/documents for a Portal with heavy traffic. What we have to do is to proxy some requests that reply with an XML (RSS) and we also need to cache some request for media resources (JPG, PDF, etc) reached through an address contained in the RSS.
> An example:
> The request "http://host/context/rss1" return:
> <rss>
> [...]
>  <item>
>    <title>item1</item>
>    <img>http://host/context/image.jpg</img>
>  </item>
> [...]
> </rss>
> We have to cache every response of "context" (the XML and the image.jpg) with a expiration time of 2 hours.
>
> Do you have address of tutorial or advanced configuration of this kind of service?
>

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