PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Dec 17, 2017 8:45 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Feb 05, 2004 4:06 pm 
Offline
Forum Newbie

Joined: Mon Jan 26, 2004 10:10 pm
Posts: 15
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 6:39 pm 
Offline
Forum Regular
User avatar

Joined: Thu Jan 08, 2004 12:22 pm
Posts: 926
Location: ecuador
Did you even bother to look @ this ???

http://forums.devnetwork.net/viewtopic.php?t=17735


Top
 Profile  
 
 Post subject: Re:
PostPosted: Thu Feb 05, 2004 9:25 pm 
Offline
Forum Newbie

Joined: Mon Jan 26, 2004 10:10 pm
Posts: 15
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...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 4:11 am 
Offline
Her Royal Site Adminness
User avatar

Joined: Tue Apr 23, 2002 2:21 am
Posts: 5371
Location: Essex, UK
Moved to Micellaneous - not a PHP question.

Mac


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2004 12:36 pm 
Offline
Forum Regular
User avatar

Joined: Thu Jan 08, 2004 12:22 pm
Posts: 926
Location: ecuador
Just cut out the lines


with the

Syntax: [ Download ] [ Hide ]
/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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group