You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ryan Courtnage <ry...@itsacanada.com> on 2003/08/01 20:32:57 UTC

Re: [users@httpd] Apache2 Reverse Proxy- image cache??

Hi,

Using Apache2 as a reverse proxy, I'm trying to enable the caching of 
images from my internal servers.  I put the following in httpd.conf:

---snip---
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so

CacheRoot "d:\Program Files\Apache Group\Apache2\cache"
CacheEnable disk /
CacheEnable mem /
CacheIgnoreNoLastMod On

....
ProxyPass /kingpin/ http://toughguy.domain.com:7070/kingpin/
ProxyPassReverse /kingpin/ http://toughguy.domain.com:7070/kingpin/
RewriteRule ^/kingpin$ kingpin/ [R]
---snip---

I see that the 'Apache2\cache' directory I specified is being populated 
with several cache files - However, the images are still being loaded 
from my internal server (toughguy:7070).

Any thoughts on what I am missing, or what I have done wrong?

Thanks
Ryan


On Thursday, July 31, 2003, at 09:50 AM, Joshua Slive wrote:

>
> On Thu, 31 Jul 2003, Ryan Courtnage wrote:
>
>> Hi,
>>
>> I'm using Apache 2 as a reverse proxy server.  It's working great, but
>> I find that the performance is poor when images are being served from
>> my internal servers.
>>
>> The content from my internal servers is dynamic (mainly JSP).  How can
>> I configure Apache to cache only images from these servers?  Is this
>> possible?
>
> See mod_cache and mod_disk_cache.  They allow you to specify a 
> url-prefix
> that is cached.  So it should work if your images are under a different
> directory than your jsp's.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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
>