# Auth before proxy

**URL:** <https://www.ruby-forum.com/t/auth-before-proxy/88468>\
**Category:** Rails\
**Created:** [March 11, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/auth-before-proxy/88468 "2007-03-11T16:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakifataya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/c89c15/32.png) [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Post date:** [March 11, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/auth-before-proxy/88468/1 "2007-03-11T16:39:19Z")

</div>

I’m planning on deploying a Rails app using Apache 2, mod\_proxy, and  
Mongrel, which seems to be the recommended scheme. I need  
authentication, but I’m OK with Apache handling that, as long as Apache  
passes REMOTE\_USER to my app (which it looks like it does).

I can find plenty of documentation for setting up Apache to proxy to  
Mongrel, and about setting up realms, but nothing that combines the two.  
How do I configure httpd.conf so that Apaches handles the credentials,  
and then proxies authenticated users? I’m guessing I’ll need to use a  
 container of some kind.
