If I understand correctly, I had the same problem and solved it using this:<div><br></div><div>server {</div><div> ...</div><div> location / {</div><div> if ($request_method = POST) {</div><div> proxy_pass <a href="http://upstream_server">http://upstream_server</a>;</div>
<div> break;</div><div> }</div><div> ...</div><div> }</div><div>}</div><div><br></div><div>This is the first "if" statement in in my "location" directive. 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"><<a href="mailto:dennis__cao@hotmail.com">dennis__cao@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
hiya :<br>
Now I use the Nginx 7.x +tomcat 6.x<br>
I have some application should use post method to request tge static page <br>
but always filed i use the httpwatch to catch the package ,I find the url give the 405 code<br>
what should I do?<br>
thanks<br>
<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>