Preserving POST data through error_page directive?


#1

In Nginx 0.6.37, when I get a POST request, and put it through a 404
error_page directive, when it reaches the next location the POST data is
lost. I also tried a rewrite instead, like:

if (!-e $request_filename) {
rewrite ^/(.*) /proxy$uri last;

and that yields the same result.

Will using the internal location redirect using the “@” symbol work in
this case? If it does I will think of getting the new version. Thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2658,2658#msg-2658