SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    blonde.... Sarah's Avatar
    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>
    where require user will vary to suit that particular folder (i.e. user admin, staff, client1, client2 or client3, 1 user to all users)

    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 day but 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 07:04.
    Regular user

  2. #2
    We like music. weirdbeardmt's Avatar
    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

  3. #3
    blonde.... Sarah's Avatar
    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 computers
    Regular user

  4. #4
    We like music. weirdbeardmt's Avatar
    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
    So what you doing here, now ?
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  5. #5
    blonde.... Sarah's Avatar
    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 too so 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 now
    Regular user

  6. #6
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •