If I understand correctly, I had the same problem and solved it using this:<div><br></div><div>server {</div><div>&nbsp;&nbsp;...</div><div>&nbsp;&nbsp;location / {</div><div>&nbsp;&nbsp; &nbsp;if ($request_method = POST) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp;proxy_pass <a href="http://upstream_server">http://upstream_server</a>;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;break;</div><div>&nbsp;&nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;...</div><div>&nbsp;&nbsp;}</div><div>}</div><div><br></div><div>This is the first &quot;if&quot; statement in in my &quot;location&quot; directive. &nbsp;If the request is a post, it is automatically sent to the app server and cached files are ignored even if they exist.</div>
<div><br></div><div>Hope that helps.</div><div><br></div><div>Nick</div><div><br><br><div class="gmail_quote">2008/12/1 曹 海峰 <span dir="ltr">&lt;<a href="mailto:dennis__cao@hotmail.com">dennis__cao@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
hiya :<br>
&nbsp;Now I use the Nginx 7.x +tomcat 6.x<br>
&nbsp;I have some application should use post method to request&nbsp; tge static page <br>
&nbsp;but always filed&nbsp; i use the httpwatch to catch the package ,I find the url give the 405 code<br>
what should I do?<br>
thanks<br>
&nbsp;<br><br><hr>下載 Windows Live Messenger 8.5 最新版,多元溝通、盡情分享,和即時傳訊好友線上同樂!—  <a href="http://get.live.com/zh-cht-tw/betas/messenger_betas" target="_blank">立即下載</a></div>
</blockquote></div><br></div>