Proxying POST method

Chris Savery chrissavery at gmail.com
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') {
            proxy_pass http://tx.indiephotographer.com;
        }

 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?

Thanks,
Chris :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080907/fbad4f32/attachment.html>


More information about the nginx mailing list