<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
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?<br>
<br>
&nbsp;&nbsp;&nbsp; server {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp;&nbsp; if($request_method = 'POST)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; proxy_pass <a class="moz-txt-link-freetext" href="http://my.updateserver.com">http://my.updateserver.com</a>;<br>
&nbsp;&nbsp;&nbsp; ... code for normal local get requests<br>
}<br>
<br>
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?<br>
Thanks,<br>
Chris :)<br>
</font>
</body>
</html>