Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    .htaccess problems

    Can anyone help me with protected directories? I have Linue 9 and in my web home directory I have created a folder called protected. For test purposes I have added to this directory the files .htaccess and .htpasswd

    The .htaccess contains the instructions shown below and the .htpasswd contains the username and encrypted password.

    When I access the directory it lists the test file <readme.txt>. When I change the permission on the directory, when I enter the url for the test file it is displayed. The files were saved as text only. For some reason the directoyr protection doesn't appear to be working - doesn't anyone have any ideas, please.

    Graham. UK

    AuthUserFile /var/www/html/protected/.htpasswd
    AuthType Basic
    AuthName "Protected Area"
    require valid-user

  2. #2


    Problem resolved - I found a tick box in the http config wizard for enabling .htaccess

Posting Permissions

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