# Error\_page can redirect to other url with original args?

**URL:** <https://www.ruby-forum.com/t/error-page-can-redirect-to-other-url-with-original-args/185220>\
**Category:** NGINX\
**Created:** [March 16, 2010, 9:24am UTC](https://www.ruby-forum.com/t/error-page-can-redirect-to-other-url-with-original-args/185220 "2010-03-16T09:24:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangbin579](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/bc79bd/32.png) [@wangbin579](https://www.ruby-forum.com/u/wangbin579)\
**Post date:** [March 16, 2010, 9:24am UTC](https://www.ruby-forum.com/t/error-page-can-redirect-to-other-url-with-original-args/185220/1 "2010-03-16T09:24:55Z")

</div>

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:

> **[error\_page can redirect to other url with original args?](https://forum.nginx.org/read.php?2,64279,64279#msg-64279)**
>
> 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?

---

<div class="post-metadata">

**Author:** ![wangbin579](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/bc79bd/32.png) [@wangbin579](https://www.ruby-forum.com/u/wangbin579)\
**Post date:** [March 16, 2010, 10:12am UTC](https://www.ruby-forum.com/t/error-page-can-redirect-to-other-url-with-original-args/185220/2 "2010-03-16T10:12:20Z")

</div>

error\_page 502 =200 /xxx$is\_args$args;

Posted at Nginx Forum:

> **[Re: error\_page can redirect to other url with original args?](https://forum.nginx.org/read.php?2,64279,64288#msg-64288)**
>
> 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?
