SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: .htaccess layout problem
-
Apr 12, 2002, 06:56 #1
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
.htaccess layout problem
If someone could have a look at this layout of folders for me as I need to have different access to different folders and well its just not working.
I have these folders where I want this access with 5 different username and password combination one for each :
ADMIN - access to folders ADMIN/STAFF/CLIENT1-3
STAFF - access to folders STAFF/CLIENT1-3
CLIENT1 - access to folder CLIENT1
CLIENT2 - access to folder CLIENT2
CLIENT3 - access to folder CLIENT3
so at present I have a .htpasswd file located in the config folder of my server which contains the username/password combinations and is encrypted.
Then each folder has its own .htaccess file where inside I have
Code:AuthName DS members AuthType Basic AuthGroupFile /dev/null AuthUserFile c:/.....config/.htpasswd <Limit GET POST> require user admin <-- varies on each folder </Limit>
My question (I get to the point eventually!) is this right? Or should I have the other folders all 'within' the ADMIN folder?
Basically I have tried both options (and yes I am still having encrypt password problems but I will sort them out another time) and the admin folder works fine and gives me access to all the other folders without asking for another password, but when I try and access a client folder I cannot get the right username/password combination which lets me in?!
If anyone has any ideas that would be great.
Thanks
Sarah
[having v bad daybut still smiling]
[edit: resolved !day getting better
it was a problem with using multiple require user 'name' in .htaccess file created a .htgroup file and all resolved nicely phew!! ]
Last edited by Sarah; Apr 12, 2002 at 08:04.
Regular user
-
Apr 13, 2002, 04:41 #2
- Join Date
- May 2001
- Location
- Channel Islands Girth: Footlong
- Posts
- 5,882
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Mkay.
I swear to drunk I'm not God.
» Matt's debating is not a crime «
Hint: Don't buy a stupid dwarf ö Clicky
-
Apr 13, 2002, 14:16 #3
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
hey weirdy it gets worse I spent the whole day getting that to work and then some kind gent tells me htaccess doesn't work even in IIS which is the server I eventually have to get it working on!
talk about being a typical friday
straight down the pub for that one
Oh well if I will work in computersRegular user
-
Apr 13, 2002, 14:40 #4
- Join Date
- May 2001
- Location
- Channel Islands Girth: Footlong
- Posts
- 5,882
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Are you blonde?
Originally posted by Sarah
straight down the pub for that one
I swear to drunk I'm not God.
» Matt's debating is not a crime «
Hint: Don't buy a stupid dwarf ö Clicky
-
Apr 13, 2002, 14:44 #5
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
that was yesterday
and yes seriously blonde tooso am I the ONLY one who didn't know htaccess wouldn't work then ?
blonde and dumb huh
If I didn't feel daft than I surely do nowRegular user
-
Apr 13, 2002, 14:59 #6
- Join Date
- Aug 2001
- Location
- London
- Posts
- 2,475
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Doh cheers 4 letting me know as well guess i will have to dye my hair
Bookmarks