Proxying POST method

Chris Savery chrissavery at
Sun Sep 7 18:01:28 MSD 2008

I posted earlier (copy below). Has no one any experience with proxying 
only POST method?
I'm getting an error that proxyPass is not allowed here - inside an if 
block. MY current code is:

        if ($request_method = 'POST') {

 But that gives config errors. Anyone know how to do this:

I have two servers and want to confine database updates to one of them. 
My code is clean in the sense all updates happen through POST requests 
only. Is this the way to proxy or relay on the POST updates to the 
server that handles data writes?

Chris :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list