about use post method to request the static page

Nick Pearson nick.pearson at gmail.com
Mon Dec 1 17:20:47 MSK 2008


If I understand correctly, I had the same problem and solved it using this:
server {
  ...
  location / {
    if ($request_method = POST) {
      proxy_pass http://upstream_server;
      break;
    }
    ...
  }
}

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.

Hope that helps.

Nick


2008/12/1 曹 海峰 <dennis__cao at hotmail.com>

>  hiya :
>  Now I use the Nginx 7.x +tomcat 6.x
>  I have some application should use post method to request  tge static page
>
>  but always filed  i use the httpwatch to catch the package ,I find the url
> give the 405 code
> what should I do?
> thanks
>
>
> ------------------------------
> 下載 Windows Live Messenger 8.5 最新版,多元溝通、盡情分享,和即時傳訊好友線上同樂!— 立即下載<http://get.live.com/zh-cht-tw/betas/messenger_betas>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20081201/d63d65f0/attachment.html>


More information about the nginx mailing list