This is a non-Cake application? Where does this failed_auth.html file
come into the picture? It's part of this other app? If so, the problem
is likely because the requested path is from root (the webroot dir)
but the app is in a subdirectory.

But you said that you used htpasswd to authenticate so this is a bit
confusing. It appears that your application has its own authentication
system. I'm thinking this has nothing to do with Cake. IMO, the best
approach to this would be to set up this other app in a completely
separate virtual host, put it in a subdir (important, given the error
msg), configure htpasswd, etc. and then make sure that Apache's
authentication works and that you can access the app. Only then, try
it inside your Cake site.


On Thu, Sep 9, 2010 at 7:00 PM, Arak Tai'Roth <nielsen.dus...@gmail.com> wrote:
> Anyone have any other thoughts on this issue?
>
> On Sep 9, 12:43 pm, "Arak Tai'Roth" <nielsen.dus...@gmail.com> wrote:
>> 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 <elia...@gmail.com> wrote:
>>
>> > See this documentation
>>
>> >http://httpd.apache.org/docs/2.0/howto/auth.html
>>
>> > On 7 set, 23:38, "Arak Tai'Roth" <nielsen.dus...@gmail.com> wrote:
>>
>> > > Can anyone help me with this problem please?
>>
>> > > On Sep 6, 11:37 pm, "Arak Tai'Roth" <nielsen.dus...@gmail.com> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to