Thanks for the replies guys, but neither of those solutions work. Sorry, I didn't explain myself better. This directory doesn't necessarily need to be called admin, but I had changed it to another name and that didn't fix the issue for me, so I changed it back to admin as that seemed more appropriate to me.
This directory is meant to be used to run an application from, so not meant to view just single files or anything. But it needs to be password protected due to the fact that it is only meant for the administrators of the site to access. Also, the apache documentation doesn't really help as I am running this from a shared server on Dreamhost, I don't have access to changing anything in their apache configuration. On Sep 8, 6:34 am, Farah <[email protected]> wrote: > See this documentation > > http://httpd.apache.org/docs/2.0/howto/auth.html > > On 7 set, 23:38, "Arak Tai'Roth" <[email protected]> wrote: > > > Can anyone help me with this problem please? > > > On Sep 6, 11:37 pm, "Arak Tai'Roth" <[email protected]> wrote:> So, > > I am aware this question has been asked and answered in a variety > > > of different ways in a variety of different places. I have already > > > spent way too much time trying to find a solution, so I'm hoping to > > > find a solution here by just asking myself. > > > > I am using CakePHP 1.2.5 in this case if that makes a difference. I'm > > > hoping not, because I'm hoping to use whatever solution I get on a few > > > different installations, all of which use different versions. > > > > Anyways, the issue is this. I have setup a directory inside /homePath/ > > > app/webroot/, the directory is called admin, so the full path looks > > > like /homePath/app/webroot/admin. Now getting to this directory works > > > great. Until I password protect it using a .htaccess and .htpasswd > > > file. > > > > After I implement the password protection, I get this error, "Error: > > > The requested address '/failed_auth.html' was not found on this > > > server." > > > > My .htaccess file looks like this: > > > AuthType Basic > > > AuthUserFile /homePath/app/webroot/admin/.htpasswd > > > AuthName "Precision Laser Therapy Administrators" > > > require valid-user > > > > I am using Dreamhost and have generated this using their panel, so I > > > am pretty positive the /homePath/ portion is correct. > > > > I have already tried the solutions > > > onhttp://groups.google.ca/group/cake-php/browse_thread/thread/9054f372d..., > > > andhttp://groups.google.ca/group/cake-php/browse_thread/thread/30ea77cad... > > > > I couldn't get them to work, that could be because I'm dumb and missed > > > something that they didn't explicitly say or they just simply won't > > > work in my case. Does someone have a solution for this issue? Assume > > > that the only thing I have changed to a static Cake install, is the > > > addition of the admin directory in /app/webroot, and the addition of > > > the .htaccess and .htpasswd files inside of it. Any help is extremely > > > appreciated. 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
