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

    Why would .htaccess not let me in?

    Hi everyone! I created .htaccess file and then I used a htpasswd -c utility to generate a .htpasswd. I inserted the exact location of the password in the .htaccess file and I added "require user someuser" . Then when I am trying to open the protected web page I get a prompt, just like supposed to, but it doesn't let me login after I put the correct username and password in there. I tried different .htpasswd generation tools but I still can't log in. Here is my .htaccess file:

    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /usr/local/somedir/.htpasswd
    Require user someuser

    Where should I look for the possible fix to this problem?
    Thank you.

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Barrie, Ontario
    Try this:
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /usr/local/somedir/.htpasswd
    Require valid-user
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

Posting Permissions

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