Is it not possible to have a Location directive instead of Directory
to apply auth to all requests? A while ago I got something like the
following working:
<Location / >
AllowOverride None
AuthName "My Rails App"
AuthType Basic
AuthUserFile "/path/to/file"
<Limit GET POST>
require valid-user
</Limit>
</Location>
Paul.
On 24/05/07, Gareth Adams
<gareth.adams-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi,
>
> We have a mongrel site running behind Apache using ProxyBalancer to manage
our
> cluster. We would like to use HTTP Authentication to restrict access to the
> site, but Apache''s mod_auth only protects a directory - this is a
problem
> because ProxyBalancer siphons off all the Rails requests before mod_auth
has a
> chance to kick in.
>
> Is it possible to restrict access to the site with our current setup?
>
> Thanks,
> Gareth
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---