Error_page can redirect to other url with original args?

if all upstream servers are all down,then nginx disposes 502 and the
original args is empty.
if I want to redirect 502 to other handler with original args, how can I
do?

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

error_page 502 =200 /xxx$is_args$args;

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs