server's full path. Try putting a file in webroot with the line:
echo __FILE__;
For example, putting that line in a file called path.php will probably
give you /full/path/to/app/webroot/path.php rather than just /app/
webroot/path.php.
On Jun 1, 11:16 pm, Jeff <jhull...@gmail.com> wrote:
> Hi Andy,
>
> Actually that is my full path. At least when I FTP to my server,
> immediately in the root directory "/" is the app folder. Is there
> anything else that could be wrong?
>
> Thanks
>
> On May 12, 9:20 pm, Andy Dirnberger <andy.dirnber...@gmail.com> wrote:
>
>
>
> > You need to use /the/full/path/to/app/.htpasswd.
>
> > On May 12, 11:17 pm, Jeff <jhull...@gmail.com> wrote:
>
> > > Hi, I have the following in my /app/webroot/.htaccess file, as well as
> > > a matching .htpasswd file in the correct directory per multiple online
> > > how-to's, but my password protection is not working. Can someone tell
> > > me what I am doing wrong?
>
> > > ****/app/webroot/.htaccess****
>
> > > AuthUserFile /app/.htpasswd
> > > AuthName "Restricted Area"
> > > AuthType Basic
> > > 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>
>
> > > I saw one tutorial that said I needed to find httpd.conf or something
> > > to that effect, but I don't see anything. Maybe this config file
> > > doesn't exist with the Cake setup....
>
> > > Any help is GREATLY appreciated.
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment