post_action to a backend server

Paul Bowsher paul.bowsher at
Sat Jan 24 22:19:10 MSK 2009

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.

The location I want to callback to is on the backend. Currently I have the

        location / {
            proxy_pass http://test;
            post_action /test_post.php;

        location = /test_post.php {
            proxy_pass http://test;

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?

Kind regards,

Paul Bowsher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list