# Proxy\_pass strips http when there are 2 or more redirect link

**URL:** <https://www.ruby-forum.com/t/proxy-pass-strips-http-when-there-are-2-or-more-redirect-link/221986>\
**Category:** NGINX\
**Created:** [August 8, 2012, 10:24am UTC](https://www.ruby-forum.com/t/proxy-pass-strips-http-when-there-are-2-or-more-redirect-link/221986 "2012-08-08T10:24:05Z")\
**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:** [August 8, 2012, 10:24am UTC](https://www.ruby-forum.com/t/proxy-pass-strips-http-when-there-are-2-or-more-redirect-link/221986/1 "2012-08-08T10:24:05Z")

</div>

Hello G.s,

I am using proxy\_pass to do something like this:

proxy\_pass  
‘[somedomain.com](http://affiliates.somedomain.com/ez/ciaapkznke/&subid1=&lnkurl=http://www.flipkart.com/%3Fpid=9780099579939%26affid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo)’

But what happens is it passes the request directly to  
“[http://www.flipkart.com/%3Fpid=9780099579939%26affid%3Dtyroo%26cmpid%3Daffiliate\_promo\_tyroo](http://www.flipkart.com/%3Fpid=9780099579939%26affid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo)”  
(second http part of the proxy\_pass link)

It does not hit [somedomain.com](http://affiliates.somedomain.com/ez/ciaapkznke/) at all.

Can anyone help me with the same?

Thanks!
