# Proxy\_pass and URI processing

**URL:** <https://www.ruby-forum.com/t/proxy-pass-and-uri-processing/221406>\
**Category:** NGINX\
**Created:** [July 12, 2012, 9:53pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-uri-processing/221406 "2012-07-12T21:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 12, 2012, 9:53pm UTC](https://www.ruby-forum.com/t/proxy-pass-and-uri-processing/221406/1 "2012-07-12T21:53:51Z")

</div>

So I’m looking at the proxy\_pass directive at  
[http://wiki.nginx.org/HttpProxyModule](http://wiki.nginx.org/HttpProxyModule)

It mentions URI processing.

For these cases of URI it is transferred without the mapping.

Furthermore, it is possible to indicate so that URI should be  
transferred  
in the same form as sent by client, not in processed form. During  
processing:

- two or by more slashes are converted into one slash: “//” – “/”;
- references to the current directory are removed: “/./” – “/”;
- references to the previous catalog are removed: “/dir /…/” – “/”.

However, I can’t seem to find a way to turn this on or off. The example  
given is

proxy\_pass [http://wiki.nginx.org/NginxHttpProxyModule#proxy\_pass](http://wiki.nginx.org/NginxHttpProxyModule#proxy_pass)  
http  
[http://wiki.nginx.org/NginxHttpCoreModule#http](http://wiki.nginx.org/NginxHttpCoreModule#http)://localhost:8000/uri/;

But that doesn’t work. I even tried using $request\_uri? and that didn’t  
work.

So how do I configure whether or not nginx does the processing?

Thanks.
