# Proxy\_set\_header concatenated value

**URL:** <https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964>\
**Category:** NGINX\
**Created:** [August 11, 2015, 8:24am UTC](https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964 "2015-08-11T08:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 11, 2015, 8:24am UTC](https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964/1 "2015-08-11T08:24:40Z")

</div>

hi,

I want to pass the following header to the backend server:

```
name: X-Original-URL
value: $scheme://$host$request_uri

```

but the concatenation of the values for the value above do not seem to  
work.

how can I do that?

thanks,

–

Igal Sapir  
Lucee Core Developer  
[Lucee.org](http://Lucee.org) [http://lucee.org/](http://lucee.org/)

---

<div class="post-metadata">

**Author:** ![Igal\_S\_Lucee.org](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/6f9a4e/32.png) [@Igal\_S\_Lucee.org](https://www.ruby-forum.com/u/Igal_S_Lucee.org)\
**Post date:** [August 11, 2015, 9:43am UTC](https://www.ruby-forum.com/t/proxy-set-header-concatenated-value/242964/2 "2015-08-11T09:43:33Z")

</div>

On Mon, Aug 10, 2015 at 11:24:00PM -0700, Igal @ [Lucee.org](http://Lucee.org) wrote:

Hi there,

> I want to pass the following header to the backend server:
> 
> ```
> name: X-Original-URL
> value: $scheme://$host$request_uri
> 
> ```
> 
> but the concatenation of the values for the value above do not seem to work.

Why do you think it does not work?

> how can I do that?

proxy\_set\_header X-Original-URL $scheme://$host$request\_uri;

works for me.

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
