preserving POST data through error_page directive?

sayeo87 nginx-forum at nginx.us
Sat Jun 6 03:15:54 MSD 2009


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






More information about the nginx mailing list