[lug] .htaccess weirdness
Greg Horne
jeerygh at hotmail.com
Wed Feb 6 18:11:45 MST 2002
Yes, I do have a nested setup. Here is why:
/admin
/directory1
/directory2
admin,direcotry1,directory2 all have .htaccess and .htpasswd in them.
Its setup so only authenticated users can access
http://website/admin/index.html.
After authenticating, based on their user name the client is allowed
into /admin/directory1 or /admin/directory2 or both. Directory1 and
directory2 have PHP scripts providing different functionality.
Is there a better way of doing this, so the client won't have to add the
'/' onto http://website/admin?
Thanks,
Greg
> -----Original Message-----
> From: lug-admin at lug.boulder.co.us [mailto:lug-admin at lug.boulder.co.us]
On
> Behalf Of Scott A. Herod
> Sent: Wednesday, February 06, 2002 4:18 PM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] .htaccess weirdness
>
> Check to see whether you have nested .htaccess directories.
>
> > Greg Horne wrote:
> >
> > Hey all! I used the wrong email address and didn't want to wait for
a
> > moderator, so I'm posting again. Sorry.
> >
> > I was contacted today and somebody was trying to log into a website
> > protected by an .htaccess file. Here is the weird thing:
> >
> > Example #1
> >
> > If you go to http://website/admin
> >
> > It asks for password, I enter it and I am denied
> >
> > It asks for password again, I enter it and it lets me in.
> >
> > BUT
> >
> > Example #2
> >
> > If you go to http://website/admin/
> >
> > It asks for password, I enter it and it lets me in.
> >
> > BTW, you don't have to try example #1 for #2 to work. Does anybody
> > have an idea as to what could be causing this?
> >
> > I have looked in my httpd.conf and found nothing that would help, is
> > this maybe a kernel problem?
> >
> > RedHat 7.0
> >
> > Kernel 2.2.16-22
> >
> > Apache 1.3.19
> >
> > Thanks for any help,
> >
> > Greg
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list