about use post method to request the static page

dennis cao dennis__cao at hotmail.com
Mon Dec 1 17:34:58 MSK 2008

thanks !
I will try it tomorrow

Date: Mon, 1 Dec 2008 08:20:47 -0600From: nick.pearson at gmail.comTo: nginx at sysoev.ruSubject: Re: about use post method to request the static pageIf I understand correctly, I had the same problem and solved it using this:

server {
  location / {
    if ($request_method = POST) {
      proxy_pass http://upstream_server;

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.


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 codewhat should I do?thanks 

下載 Windows Live Messenger 8.5 最新版,多元溝通、盡情分享,和即時傳訊好友線上同樂!— 立即下載
聰明搜尋和瀏覽網路的免費工具列 — MSN 搜尋工具列 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20081201/8b6d7819/attachment.html>

More information about the nginx mailing list