Hi,<div><br></div><div>I am currently using nginx on frontend to proxy all requests to an apache backend. I want to use post_action to callback upon completion of a request.</div><div><br></div><div>The location I want to callback to is on the backend. Currently I have the following:</div>
<div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location / {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="http://test">http://test</a>;<br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;post_action /test_post.php;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;location = /test_post.php {</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass <a href="http://test">http://test</a>;<br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;internal;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>Normal proxying works fine, but nginx does not appear to ever make the callback to test_post.php. Removing the test_post.php location results in a Redirect cycle error in my log. Does anyone know how to resolve this?</div>
<div><br></div><div>Kind regards,</div></div><div><br clear="all">Paul Bowsher<br>
</div>