Well, I've done like you say, but I don't get it to work. What is wrong?

AuthUserFile /pf/phpmyadmin/.htpasswd
AuthName "Login - Sven David`s Site"
AuthType Basic
require valid-user

Same setup as you

    Ok ok, I got it! thanks for the help!
    but but, I can't log in. Any example of a valid password file? I used one encryptet for Unix, but didn't work. It didn't work with plan text either.
    WHat's wrong?

    user:pass does this not work?

      You need to use the htpasswd.exe included in the apache/bin/ directory. You'll need to get to a command prompt, change to the apache bin directory, and follow the steps in this tutorial (only you'll need to set up the file permissions as per your windows machine):
      http://www.colostate.edu/~ric/htpass.html

        25 days later

        Es gibt 2 Stellen in der httpd.conf die geaendert werden sollten auf
        allowoverride all nicht nur die wo directory / steht sondern auch die weiter unten 😉

          I have the same problem that I can get the login screen up, but all accounts I created were "incorrect Password or userID"
          Also...how do you create a ".htaccess" or .anything for that matter?? You need a file name...I am assuming xxxx.htaccess but that doesnt work.... Im thinking this could be the sourc eof my problem.

            14 days later

            This solution didnt wok for me in windows 2000, apache server when my .htacess was:

            AuthType Basic
            AuthName "By Invitation Only"
            AuthUserFile /WWW/.htpasswd
            Require username

            However, it worked when I did the following:
            AuthType Basic
            AuthName "By Invitation Only"
            AuthUserFile c:/WWW/.htpasswd

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

            [As Savage has suggested, In he "httpd.conf" the setting: "AllowOverride None"
            to be changed to : "AllowOverride All"

            to make this work]

            thanks to all

              sorry!

              I enclosed "require valid-user" with "Limit".. "/Limit" tags (it seems tags is not coming visible)

              so, please read:

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

              instead of:

              "require valid-user" in prev. link.

                Create the file with notepad, etc and save as x.htaccess. Then you can save as .htaccess if you rename the file with dos prompt.

                C:...> rename x.htaccess .htaccess

                  3 months later

                  I can not get my .htaccess file to work.... is there a detailed step by step way to get this done? -Dave

                    10 days later

                    THANK YOU, YOU AND THE AUTHOR OF THAT ARE GOD! lol, maybe not...

                      a month later
                      Write a Reply...