You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John B <ap...@jbnet.cns-uk.org> on 2003/12/03 21:46:03 UTC

[users@httpd] mod_proxy and caching

Hi all,

I am using Apache 2.0.48 on Windows 2000 with mod_proxy to reverse proxy to a number of back-end servers.
The Apache box is configured with basic authentication enabled, and it then forwards the credentials to the back end servers.

The link between the front-end Apache box and the back-end servers is not as fast as it could be, so I'd like to have Apache cache as much content (images etc.) from the back-end servers as possible.
However, am I right in thinking that mod_cache will not cache any resources where authentication is involved.

If so, is there any way around this - can I tell mod_cache to still cache *.gif, *.jpg etc. even though they may be protected with authentication?

Failing that, could I have authentication enabled for all files apart from images?
I've used:
<Proxy *>
  AuthName "My server"
  AuthType Basic
  [...]
</Proxy>

to force authentication for all proxied resources - how could I turn authentication off for particular file types?

Many thanks,

John


---------------------------------------------------------------------
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] mod_proxy and caching

Posted by Thomas George <tg...@ibaset.com>.
One solution might be to simply host the image files on the front-end
server, and use an alias to the images folder; that way, all of the image
paths will resolve to the front-end rather than the mid-tier... (I haven't
actually tried this, but the connector on the Tomcat (with the ProxyName
=http(s)://front-side.com and ProxyPort=80/443) should support it with no
qualms..)

It might be a little difficult for the developers to understand, but unless
they are using absolute paths ( ./images ) you don't' need to tell them
(just copy the image directory over, edit the conf, and restart) :-)

Thomas

-----Original Message-----
From: John B [mailto:apache@jbnet.cns-uk.org] 
Sent: Wednesday, December 03, 2003 12:46 PM
To: users@httpd.apache.org
Subject: [users@httpd] mod_proxy and caching

Hi all,

I am using Apache 2.0.48 on Windows 2000 with mod_proxy to reverse proxy to
a number of back-end servers.
The Apache box is configured with basic authentication enabled, and it then
forwards the credentials to the back end servers.

The link between the front-end Apache box and the back-end servers is not as
fast as it could be, so I'd like to have Apache cache as much content
(images etc.) from the back-end servers as possible.
However, am I right in thinking that mod_cache will not cache any resources
where authentication is involved.

If so, is there any way around this - can I tell mod_cache to still cache
*.gif, *.jpg etc. even though they may be protected with authentication?

Failing that, could I have authentication enabled for all files apart from
images?
I've used:
<Proxy *>
  AuthName "My server"
  AuthType Basic
  [...]
</Proxy>

to force authentication for all proxied resources - how could I turn
authentication off for particular file types?

Many thanks,

John


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


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