use proxy store with url parameters

Casey Rayman casey.rayman at d2sc.com
Fri Feb 1 21:47:05 MSK 2008


I have been trying to get proxy_store to work with a url of the form / 
resource?resourceId=XXX where XXX is a number.  This url actually  
returns a graphic from a database which does not change often.  Is is  
possible to have proxy store work in this case where the XXX is the  
only part of the URL which is any different?

My most recent attempt:

         location /resource {
                 root /var/www/data/fetch;
                 error_page 404 = /fetch$args;
         }
         location ^~ /fetch/ {
                 internal;
                 proxy_pass  http://10.0.3.197:8246;
                 proxy_store /var/www/data/fetch$args;
                 proxy_store_access user:rw group:rw all:r;
         }


Regards,
Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080201/5d1ce248/attachment.html>


More information about the nginx mailing list