# Mimic nginx proxy\_pass in fcgi

**URL:** <https://www.ruby-forum.com/t/mimic-nginx-proxy-pass-in-fcgi/205724>\
**Category:** NGINX\
**Created:** [April 14, 2011, 9:54am UTC](https://www.ruby-forum.com/t/mimic-nginx-proxy-pass-in-fcgi/205724 "2011-04-14T09:54:12Z")\
**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:** [April 14, 2011, 9:54am UTC](https://www.ruby-forum.com/t/mimic-nginx-proxy-pass-in-fcgi/205724/1 "2011-04-14T09:54:12Z")

</div>

In my scenario, the rules are complex enough that I have to hand off to  
fcgi from nginx. I use proxy\_pass to hand off to fcgi where the actual  
redirection happens based on some complex conditions.  
But instead of using the Location Header in fcgi which is a rewrite, I  
want to preserve the headers.  
Looking to mimic how nginx does proxy\_pass in fcgi. Thanks!
