<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>I have question
about caching functionality in nginx.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=863383108-10052007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>The purpose is to
use nginx on local server to speed up responses from <remote
server>.</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>1. Will the
following configuation cache static content from <remote server> for 5d
?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863383108-10052007>2. Where will the
cached content be stored ? Directory ../nginx/proxy_temp is always
empty.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=863383108-10052007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=863383108-10052007>
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)$
{<BR>
include
conf/mime.types;
<BR>
proxy_pass <A href="http://<remote server>">http://<remote
server></A>;
<BR>
proxy_redirect
off;
<BR>
access_log
logs/access.static.log;<BR>
expires
5d;<BR>
}
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT size=2></FONT>
<P align=left><FONT size=1><FONT face=Tahoma><FONT size=2>Martin
Minka<BR></FONT></FONT></FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>