# Proxy pass server based on request method

**URL:** <https://www.ruby-forum.com/t/proxy-pass-server-based-on-request-method/227067>\
**Category:** NGINX\
**Created:** [March 2, 2013, 11:51pm UTC](https://www.ruby-forum.com/t/proxy-pass-server-based-on-request-method/227067 "2013-03-02T23:51:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlseguin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b3f665/32.png) [@karlseguin](https://www.ruby-forum.com/u/karlseguin)\
**Post date:** [March 2, 2013, 11:51pm UTC](https://www.ruby-forum.com/t/proxy-pass-server-based-on-request-method/227067/1 "2013-03-02T23:51:19Z")

</div>

We want to pick the backend server to proxy\_pass to based on the request  
method. Saw one example that used limit\_except. Another idea would be to  
use  
lua. Is there a preferred way to achieve this?

Karl

Posted at Nginx Forum:

> **[proxy pass server based on request method](https://forum.nginx.org/read.php?2,236839,236839#msg-236839)**
>
> We want to pick the backend server to proxy\_pass to based on the request method. Saw one example that used limit\_except. Another idea would be to use lua. Is there a preferred way to achieve this? Karl
