proxy with caching functionality

Martin Minka martin.minka at gmail.com
Thu May 10 12:35:31 MSD 2007


I have question about caching functionality in nginx.
 
The purpose is to use nginx on local server to speed up responses from
<remote server>.
1. Will the following configuation cache static content from <remote server>
for 5d ?
2. Where will the cached content be stored ? Directory ../nginx/proxy_temp
is always empty.
 
                location ~*
^.+.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|css|doc|xls|exe|pdf|ppt|txt|tar
|mid|midi|wav|bmp|rtf|js|swf|xml)$ {
                        include       conf/mime.types;     
                        proxy_pass http:// <http://<remote server>> <remote
server>;          
                        proxy_redirect          off;           
                        access_log   logs/access.static.log;
                        expires      5d;
                }              
 
Martin Minka


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070510/3b745693/attachment.html>


More information about the nginx mailing list