Page 1 of 1

New .htaccess/.htpasswd problem

Posted: Thu Feb 05, 2004 3:06 pm
by Labbat
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

Posted: Thu Feb 05, 2004 5:39 pm
by ol4pr0
Did you even bother to look @ this ???

viewtopic.php?t=17735

Re:

Posted: Thu Feb 05, 2004 8:25 pm
by Labbat
AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName "My Dog Did A Meep On The Rug"
AuthType Basic
AuthUserFile C:\Program Files\Apache Group\Apache\htdocs\www\admin\
deny from <someip> for exmple


Yes, I did look at it...
I dont understand where you put /dev/null
Where is that supposed to point?
And I assume the AuthUserFile is where the htaccess points...
And the line underneath that
Deny from <someip> for example/ I dont understand what you mean there, either...

Posted: Fri Feb 06, 2004 3:11 am
by twigletmac
Moved to Micellaneous - not a PHP question.

Mac

Posted: Sat Feb 07, 2004 11:36 am
by ol4pr0
Just cut out the lines


with the

Code: Select all

/dev/null/

and 

deny 200.8.0.0.0 

if you do not know the usage ..
they are just a thing i used.. you can cut it out..

for learnign more about deny ip and auth group you ll have to urn:doGooglesearch the i-net ;-)

the lines above will just make youre htaccess work..

and yes the authfile is where youre htpwd is located ;-)

happy hunting