Hey, my new problem now, is if I take my
' .htpasswd ' from the
C:\Program Files\Apache Group\Apache\
Directory, and move it too

C:\Program Files\Apache Group\Apache\htdocs\www\admin

The login will pop up when I go to the URL:
http://142.59.59.29/www/admin/

But if I leave the .htpasswd file in this directory
C:\Program Files\Apache Group\Apache\
The login doesnt pop up ...when I go to the URL
Im just trying to protect the one folder
http://142.59.59.29/www/admin <- The 'admin'
Folder....

Does anyone know why this is?

I have my 'htaccess' file in
C:\Program Files\Apache Group\Apache\htdocs\www\admin\
But I was told if the .htaccess file is in that directory
and thats the folder you want to protect, you can't
put the .htpasswd file in there....

Anyways does anyone know why this isn't working ?
here is my htaccess file

AuthName "Secure Area"
AuthUserFile \Apache Group\Apache.htpasswd
AuthType Basic

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

Anyways, I have my htpasswd

I did the username, and password, so thats all set up
its using MD5....

    Perhaps it didnt pop up because you had already accessed that folder. I'm pretty sure that .htaccess is session cached. You only need to log in once per browser session!

      I got some good out of my problem here:
      In my htaccess file I have this

      AuthName "Secure Area"
      AuthUserFile root/".htpasswd"
      AuthType Basic

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

      Note where it says AuthUserFile root/".htpasswd"
      My question is, is that an absolute path?
      Im told it has to be absolute....
      I finally got it to work - meaning
      I got the login to pop up when I go to
      http://142.59.59.29/www/admin/
      However, it still isn't reconizing my username/password
      Now, in Command prompt I do everything right, I type:

      cd "\Program Files\Apache Group\Apache\bin"
      Next, I type

      htpassword -c "C:\Program Files\Apache Group\Apache.htpasswd username

      Now, note where I put ' username ' at the end there.
      I can replace the word 'username' with whatever I want my username to be correct??

      Anyway next, after I type that, it asks me to type my password, so I type it, then it asks me to type it again, and I type it, then it says "Adding password for username"

      So everything works as it should, as I mentioned its just the login..
      When I go to the url
      (http://142.59.59.29/www/admin/) The login pops up, but it doesn't reconize my username and pw....
      Try for yourself username: jeff password: iloveyou

      Thanks

        I got some good out of my problem here:
        In my htaccess file I have this

        AuthName "Secure Area"
        AuthUserFile root/".htpasswd"
        AuthType Basic

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

        Note where it says AuthUserFile root/".htpasswd"
        My question is, is that a correct path?

        I finally got it to work - meaning
        I got the login to pop up when I go to
        http://142.59.59.29/www/admin/
        However, it still isn't reconizing my username/password
        Now, in Command prompt I do everything right, I type:

        cd "\Program Files\Apache Group\Apache\bin"
        Next, I type

        htpassword -c "C:\Program Files\Apache Group\Apache.htpasswd username

        Now, note where I put ' username ' at the end there.
        I can replace the word 'username' with whatever I want my username to be correct??

        Anyway next, after I type that, it asks me to type my password, so I type it, then it asks me to type it again, and I type it, then it says "Adding password for username"

        So everything works as it should, as I mentioned its just the login..
        When I go to the url
        (http://142.59.59.29/www/admin/) The login pops up, but it doesn't reconize my username and pw....
        Try for yourself username: jeff password: iloveyou

        Thanks

          Did you change the path to the password file when you moved .htaccess?

            Well, I created the .htpasswd file
            Then, I went and opened my .htaccess file I changed
            the path too root/".htpasswd"

            Here is what my .htaccess file looks like
            AuthName "Secure Area"
            AuthUserFile root/".htpasswd"
            AuthType Basic

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

            Where I put root/".htpasswd"

            Is that a valid path? I was told I need an absolute one..
            Is that good enough?

              Write a Reply...