Erwin escribió:
> I am deploying my app  with 2 virtual host for the testing and staging
> phases under mongrel
>
> 1-  test.mydomain.net
> 2-  stage.mydomain.net
> 2-  www.mydomain.net
>
> I would like to give access to test and stage only for authorized
> users and www to everyone, using the Apache  basic authorization
> system  I am using
>
> I think I must write in my virtual host Apache conf
>
> <Location 'directory'>
>    AuthType Basic
>     AuthName "Mydomain Repository"
>     AuthUserFile /etc/apache2/mydomain.passwd
>     <LimitExcept GET >
>         Require valid-user
>     </LimitExcept>
> </Location>
>
>
> but I dont' know which directory I should protect ?   current or
> public..
> can I write a recipe for that?
>
> thanks and Happy New Year !!
> >
>
>   
Hi,
  You should protect "public" directory. Besides, if you're using apache 
with proxy balancer you must insert the same directives there, else only 
protect static files ;)

Regards

-- 
Rafael Garcia Ortega


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to