# Proxying POST requests for the given conditions

**URL:** <https://www.ruby-forum.com/t/proxying-post-requests-for-the-given-conditions/241071>\
**Category:** NGINX\
**Created:** [May 12, 2014, 9:30am UTC](https://www.ruby-forum.com/t/proxying-post-requests-for-the-given-conditions/241071 "2014-05-12T09:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 12, 2014, 9:30am UTC](https://www.ruby-forum.com/t/proxying-post-requests-for-the-given-conditions/241071/1 "2014-05-12T09:30:05Z")

</div>

Hi,

For all POST requests to nginx.

We want to proxy\_pass to [http://192.168.1.1:8000](http://192.168.1.1:8000) if test=1 or to  
[http://192.168.1.2:8080](http://192.168.1.2:8080) if test=0

How to configure the above.

Thanks,  
M. G.
