Sunday, March 17, 2013

Re: password protect entire site

Why dont you use the cake Auth component?

Em 13/03/2013 19:14, "cyboman" <allanmon@gmail.com> escreveu:
>
> Hello all,
>
> I've been trying to find a way to easily password protect the entire site. This will allow me to troubleshoot the site while unauthenticated users cannot have access.
>
> I've tried editing the htaccess file in the webroot, but while it does bring up the authentication  after entering the credentials it gives a "internal server error". I feel like the auth code in htaccess is interfering with how cakephp wants htaccess to work.
>
> Here is my htaccess:
>
> AuthName "Restricted Area" 
> AuthType Basic 
> AuthUserFile /app/.htpasswd
> AuthGroupFile /dev/null 
> require valid-user
>
> <IfModule mod_rewrite.c>
>     RewriteEngine On
>     RewriteCond %{REQUEST_FILENAME} !-d
>     RewriteCond %{REQUEST_FILENAME} !-f
>     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
> </IfModule>
>
> Any help much appreciated.
>
> -Cybo
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: