# Rails proxy setting - How?

**URL:** <https://www.ruby-forum.com/t/rails-proxy-setting-how/187056>\
**Category:** Rails\
**Created:** [April 16, 2010, 9:51am UTC](https://www.ruby-forum.com/t/rails-proxy-setting-how/187056 "2010-04-16T09:51:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![52carcar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/5/ac91a4/32.png) [@52carcar](https://www.ruby-forum.com/u/52carcar)\
**Post date:** [April 16, 2010, 9:51am UTC](https://www.ruby-forum.com/t/rails-proxy-setting-how/187056/1 "2010-04-16T09:51:35Z")

</div>

Description:

Now I have set a openfire as xmpp server, and use apache do a proxy pass  
to enable http-bind  
httpd.conf:  
ProxyRequests On  
ProxyPass /http-bind/ [http://host:7070/http-bind/](http://host:7070/http-bind/) (this is the openfire  
address)  
ProxyPassReverse /http-bind/ [http://host:7070/http-bind/](http://host:7070/http-bind/)

When using under apache, it works.

But Now I using rails with port 3000, so my question is can rails do the  
same thing as apache, can proxypass a action to a url?

I have try the Net::HTTP.proxy but can’t make it work.

Any help is appreciate!
