# Nginx 1.0.12 proxy\_redirect

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-12-proxy-redirect/216503>\
**Category:** NGINX\
**Created:** [February 6, 2012, 7:12pm UTC](https://www.ruby-forum.com/t/nginx-1-0-12-proxy-redirect/216503 "2012-02-06T19:12:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 6, 2012, 7:12pm UTC](https://www.ruby-forum.com/t/nginx-1-0-12-proxy-redirect/216503/1 "2012-02-06T19:12:37Z")

</div>

I was really hoping this feature from the 1.1.11 realse would make it  
into the next stable release (1.0.12)  
\*) Feature: the “proxy\_redirect” directive supports variables in the  
first parameter.

Looks like it didn’t make the cut. Any chance of making the next  
release? The current limitation of variables to only the second  
parameter makes this feature a bit cumbersome.

Because of a number of backend apps that try to redirect, I have to do:

# proxy\_redirect http://site\_1:8080/ http://site\_1/;

# proxy\_redirect http://site\_2:8080/ http://site\_2/;

# proxy\_redirect http://site\_3:8080/ http://site\_3/;

…

# proxy\_redirect http://site\_n:8080/ http://site\_n/;

in my proxy params file instead of a simple:

# proxy\_redirect http://:8080$host/http://$host/;

Please consider adding it.

Thanks
