Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2003
    Location
    Toronto, Canada
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    htaccess question

    More htaccess questions.

    Here's the htaccess I'm using to protect my members area:
    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
    AuthName MEMBERS
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>

    I want to be able to offer a "tiered" membership option allowing access to more withing my membership area for more money. So I need to protect directories separately. With the file listed above does anyone know if I can add some lines in??? I'd try it on my server but I don't want to mess with my present customers and accidently block them out. I'd basically be adding separate data locations for the password files to different directories. So does anyong know if I can do this --

    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/vdata/.htpasswd
    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data1/.htpasswd
    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data2/.htpasswd
    AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data#/.htpasswd
    AuthName MEMBERS
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>


    -- in other words repeat the "AuthUserFile" line???


    I don't want to have to duplicate my members area into different directories. I want to be able to specify who gets in.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,095
    Thanks
    11
    Thanked 101 Times in 99 Posts
    no don't do that

    check out how to use AuthGroupFile , you can add existing members to 'groups' and cover a directory by allowing users from a valid group...

    http://httpd.apache.org/docs/howto/auth.html#basic
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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