2013-05-06 38 views
1

我运行NGINX服务器版本1.2.6。 我想反向代理IIS的某个位置的所有HTTP POST请求。 然而,除了POST以外的所有其他请求,应自Nginx的服务包括为同一位置:如何反向将nginx中的所有HTTP POST请求代理到IIS?

location ~ \.aspx { 
    if ($request_method = "POST") { 
     #reverse proxy to the IIS 
    } 
    #if it's not post request 
    try_files $uri =404; 
} 

的问题是,当我收到POST请求,nginx的获得404 有人能提出一个解决方案?

回答

相关问题