nginx-0.6.4

Janko Hauser jh at zscout.de
Tue Jul 17 16:43:17 MSD 2007


Am 17.07.2007 um 12:44 schrieb Igor Sysoev:

> proxy_store is not cache, it's rather mirror on demand:
>
> location /images/ {
>     root                 /data/www;
>     error_page           404 = /fetch$uri;
> }
>
> location /fetch {
>     internal;
>
>     proxy_pass           http://backend;
>     proxy_store          on;
>     proxy_store_access   user:rw  group:rw  all:r;
>     proxy_temp_path      /data/temp;
>
>     alias                /data/www;
> }
>
> if file is not found, then it will be fetched from backend and stored
> in 'root/alias' or in path specified explicitly:
>
> proxy_store   /data/www$original_uri;

Ah, that makes things clearer. Is it possible to steer this from the  
backend by setting headers in the response or some other means? But  
this alone will help a lot, thanks.

With regards,

__Janko Hauser


-- 
Janko Hauser  email:  jhauser at zscout.de
               mobile: +49 1721 641552


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 155 bytes
Desc: Signierter Teil der Nachricht
URL: <http://nginx.org/pipermail/nginx/attachments/20070717/36f895ed/attachment.pgp>


More information about the nginx mailing list