<!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.6001.18000" name=GENERATOR><LINK
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>Hi,</FONT></DIV>
<DIV> I want to cache static files as gif,jpg and so on .that
my config files:</DIV>
<DIV> </DIV>
<DIV>
<DIV>location *~*\.(jgp|gif|png|css|swf|html|htm)$ {</DIV>
<DIV> root /web/html/;</DIV>
<DIV> proxy_store on;</DIV>
<DIV> proxy_set_header Accept-Encoding '';</DIV>
<DIV> proxy_temp_path /web/tmp/;</DIV>
<DIV> proxy_store_access user:rw group:r all:r; </DIV>
<DIV> if (!-f $request_filename)</DIV>
<DIV> {</DIV>
<DIV> proxy_pass http://localhost:81;</DIV>
<DIV>} </DIV>
<DIV></DIV>
<DIV>}</DIV>
<DIV> location / {</DIV>
<DIV></DIV>
<DIV> proxy_redirect off;</DIV>
<DIV> proxy_set_header Host $host;</DIV>
<DIV> proxy_set_header X-Real-IP $remote_addr;</DIV>
<DIV> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</DIV>
<DIV> client_max_body_size 50m;</DIV>
<DIV> client_body_buffer_size 256k;</DIV>
<DIV> proxy_connect_timeout 30;</DIV>
<DIV> proxy_send_timeout 30;</DIV>
<DIV> proxy_read_timeout 60;</DIV>
<DIV> proxy_buffer_size 4k;</DIV>
<DIV> proxy_buffers 4 32k;</DIV>
<DIV> proxy_busy_buffers_size 64k;</DIV>
<DIV> proxy_temp_file_write_size 64k;</DIV>
<DIV> proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;</DIV>
<DIV> proxy_max_temp_file_size 128m;</DIV>
<DIV> </DIV>
<DIV> proxy_store off;</DIV>
<DIV> </DIV>
<DIV> proxy_pass http://test/;</DIV>
<DIV> }</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>}</DIV>
<DIV>}</DIV></DIV>
<DIV><FONT face=Verdana size=2>now,it </FONT><FONT face=Verdana size=2>have
problem,inthe proxy_temp_path /web/tmp/</FONT></DIV>
<DIV>there is no files cache.why?thanks!</DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2009-05-18
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>weichenqi</SPAN>
</FONT></DIV></FONT></BODY></HTML>