Proxy for database updates

Chris Savery chrissavery at
Sun Sep 7 08:20:25 MSD 2008

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?

    server {
     if($request_method = 'POST)
    ... code for normal local get requests

Or do I have to put more in there so the proxy requests don't fall 
through and do local stuff too? Like "last" for rewrite or something?
Chris :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list