# OPENid problem with trust\_root when rails app running behind

**URL:** <https://www.ruby-forum.com/t/openid-problem-with-trust-root-when-rails-app-running-behind/103547>\
**Category:** Rails\
**Created:** [May 7, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/openid-problem-with-trust-root-when-rails-app-running-behind/103547 "2007-05-07T19:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 7, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/openid-problem-with-trust-root-when-rails-app-running-behind/103547/1 "2007-05-07T19:54:43Z")

</div>

Hi I am in the process of setting up open id for my website and there  
is one thing that I just cannot figure out.

When I run it on my development instance I get it working with out a  
problem but when I run it on my production I have a problem with my  
trustroot. This is what I get on the open id provider side.

Not under trust\_root u’[http://127.0.0.1:8000](http://127.0.0.1:8000)’ the trusted root should  
be the domain it’s coming from I assume.  
I suspect this is happening because I am using apache to load balance  
between a couple of mongrel instances. I have been trying to set the  
trust\_root manually but cannot wrap my head around how that is done.

Any ideas?
