Perfect, thank you very much Maxim!<div><br clear="all">Paul Bowsher<br>
<br><br><div class="gmail_quote">On Sun, Jan 25, 2009 at 12:01 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<div class="Ih2E3d"><br>
On Sat, Jan 24, 2009 at 07:19:10PM +0000, Paul Bowsher wrote:<br>
<br>
> Hi,<br>
> I am currently using nginx on frontend to proxy all requests to an apache<br>
> backend. I want to use post_action to callback upon completion of a request.<br>
><br>
> The location I want to callback to is on the backend. Currently I have the<br>
> following:<br>
><br>
> location / {<br>
> proxy_pass <a href="http://test" target="_blank">http://test</a>;<br>
> post_action /test_post.php;<br>
> }<br>
><br>
> location = /test_post.php {<br>
> proxy_pass <a href="http://test" target="_blank">http://test</a>;<br>
<br>
</div>- proxy_pass <a href="http://test" target="_blank">http://test</a>;<br>
+ proxy_pass <a href="http://test/test_post.php" target="_blank">http://test/test_post.php</a>;<br>
<div class="Ih2E3d"><br>
> internal;<br>
> }<br>
><br>
> Normal proxying works fine, but nginx does not appear to ever make the<br>
> callback to test_post.php. Removing the test_post.php location results in a<br>
> Redirect cycle error in my log. Does anyone know how to resolve this?<br>
<br>
</div>See above. The proxy_pass without uri component uses original<br>
request uri (and post_action doesn't invalidate it currently). So<br>
you have to use proxy_pass with explicitly set uri for this to<br>
work.<br>
<font color="#888888"><br>
Maxim Dounin<br>
<br>
</font></blockquote></div><br></div>