Thursday, March 14, 2013

Re: password protect entire site

On Wed, Mar 13, 2013 at 6:14 PM, cyboman <allanmon@gmail.com> wrote:
> 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.

Cake doesn't know anything about htaccess. The instructions in there
are for Apache only.

> Here is my htaccess:
>
> AuthName "Restricted Area"
> AuthType Basic
> AuthUserFile /app/.htpasswd

You have a leading slash so Apache is expecting to find htpasswd
inside an app dir at the server's root. If your htaccess file is in
the same directory as the app dir, remove the leading slash.
Otherwise, provide the full path from the server root. (eg.
/var/www/...)

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate