directory configuration file sample

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickyeng
    Contributor
    • Nov 2006
    • 252

    directory configuration file sample

    i have 3 directory, members and sounds directories.

    the directories sounds and members need to be protected from access by unauthorised people.

    how to configure my server so that only users in the member "group" have access ?

    i want to use directory configuration file(directory access control file) to prevent accessing from unauthorized user to members directory.

    So, i have to create a directory configuration file and place in /members directory. Could anyone show me the sample of configuration file(not global access control file).

    thanks in advance.
    from
    Nicky.
  • nickyeng
    Contributor
    • Nov 2006
    • 252

    #2
    I guess Apache sub-forum is kinda no ppl around...

    i used directory configuration file, which is .htaccess for control access to directory files.

    i put this .htaccess file in /ass2/members/
    and that means any files under .../members/ directory will be private.
    user will see a pop up box asking for username and password.
    if user no input anyuthing, he can't access this directory.

    is that correct?

    If so, when i request:
    Code:
    http://hostname:44000/ass2/members/test.html
    and it gives the exact test.html.

    Dont it supposed pop-up a box for authentication?

    here is my .htaccess file:
    Code:
    AuthUserFile /home/student/w00xxx/xxx/html/ass2/members/.htpasswd
    AuthName "Password Required"
    AuthType Basic
    Require user user1
    Any wrong?
    Or is it my server-wide configuration file (httpd.conf) set the directory level not to use .htaccess file ???? anything that might caused by httpd.conf file ?

    Anyone please

    from
    Nick

    Comment

    Working...