.htaccess .htpasswd

This is a discussion on .htaccess .htpasswd within the Apache Web Server forums, part of the Web Server and Related Forums category; I am having a problem with the password protection on a site I am developing. The address is as follows: ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read

 

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2006
Mike Morley
 
Posts: n/a
Default .htaccess .htpasswd

I am having a problem with the password protection on a site I am
developing. The address is as follows:

http://82.29.217.118/careergrad/index.html

The private page I am trying to access is:

http://82.29.217.118/careergrad/private/index.html

username: test
password: test123

"htpasswd -cp .htpasswd test" is the command I used to create the test
user so I could check the .htpasswd file to make sure that the password
that I entered was correct.

The problem is that even though the password and username are entered
correctly it keeps asking me for the password again.

..htaccess file as follows:

AuthUserFile /var/www/html/careerGrad/private
AuthGroupFile /dev/null
AuthName "CareerGrad Members Area"
AuthType Basic

require valid-user

Any help that could be offered would be most appreciated.
  #2 (permalink)  
Old 12-08-2006
HansH
 
Posts: n/a
Default Re: .htaccess .htpasswd


"Mike Morley" <nobody@nowhere.com> schreef in bericht
news:SWjeh.197$v4.17@newsfe3-win.ntli.net...
>I am having a problem with the password protection on a site I am
>developing. The address is as follows:
>
> http://82.29.217.118/careergrad/index.html
>
> The private page I am trying to access is:
>
> http://82.29.217.118/careergrad/private/index.html
>
> username: test
> password: test123
>
> "htpasswd -cp .htpasswd test" is the command I used to create the test
> user so I could check the .htpasswd file to make sure that the password
> that I entered was correct.

Oops ... plaintext won't work for 'Apache/2.2.0 (Fedora)':
http://httpd.apache.org/docs/2.2/programs/htpasswd.html
"-p Use plaintext passwords. Though htpasswd will support creation on all
platforms, the httpd daemon will only accept plain text passwords on
Windows, Netware and TPF."

Use -m if you want to use the .htpasswrd on Windows too.

> .htaccess file as follows:
> AuthUserFile /var/www/html/careerGrad/private

Should end with the file created by htpasswd, given the above:'.htpasswd'

> AuthGroupFile /dev/null

Just skip or comment the directive

> AuthName "CareerGrad Members Area"
> AuthType Basic
> require valid-user


HansH


  #3 (permalink)  
Old 12-10-2006
Mike Morley
 
Posts: n/a
Default Re: .htaccess .htpasswd

Thanks for the help HansH,

I have made the changes you recommended but the problem still persists.

Do you have any further thoughts as to what the problem could be?

Thanks again

-Mike

//------------------------------------------------------------------------

HansH wrote:
> "Mike Morley" <nobody@nowhere.com> schreef in bericht
> news:SWjeh.197$v4.17@newsfe3-win.ntli.net...
>> I am having a problem with the password protection on a site I am
>> developing. The address is as follows:
>>
>> http://82.29.217.118/careergrad/index.html
>>
>> The private page I am trying to access is:
>>
>> http://82.29.217.118/careergrad/private/index.html
>>
>> username: test
>> password: test123
>>
>> "htpasswd -cp .htpasswd test" is the command I used to create the test
>> user so I could check the .htpasswd file to make sure that the password
>> that I entered was correct.

> Oops ... plaintext won't work for 'Apache/2.2.0 (Fedora)':
> http://httpd.apache.org/docs/2.2/programs/htpasswd.html
> "-p Use plaintext passwords. Though htpasswd will support creation on all
> platforms, the httpd daemon will only accept plain text passwords on
> Windows, Netware and TPF."
>
> Use -m if you want to use the .htpasswrd on Windows too.
>
>> .htaccess file as follows:
>> AuthUserFile /var/www/html/careerGrad/private

> Should end with the file created by htpasswd, given the above:'.htpasswd'
>
>> AuthGroupFile /dev/null

> Just skip or comment the directive
>
>> AuthName "CareerGrad Members Area"
>> AuthType Basic
>> require valid-user

>
> HansH
>
>

  #4 (permalink)  
Old 12-10-2006
David
 
Posts: n/a
Default Re: .htaccess .htpasswd

Mike Morley wrote:
> Thanks for the help HansH,
>
> I have made the changes you recommended but the problem still persists.
>
> Do you have any further thoughts as to what the problem could be?
>
> Thanks again
>
> -Mike
>


Did you also make adjustments to your DNS
  #5 (permalink)  
Old 12-10-2006
Mike Morley
 
Posts: n/a
Default Re: .htaccess .htpasswd

David wrote:
>
> Did you also make adjustments to your DNS


What changes do I need to make?

I haven't had this problem before.
  #6 (permalink)  
Old 12-11-2006
David
 
Posts: n/a
Default Re: .htaccess .htpasswd

Mike Morley wrote:
> David wrote:
>>
>> Did you also make adjustments to your DNS

>
> What changes do I need to make?
>
> I haven't had this problem before.



I actually was replying to another post, I don't know how I screwed this
up so badly...... Sorry about that
  #7 (permalink)  
Old 12-11-2006
Mike Morley
 
Posts: n/a
Default Re: .htaccess .htpasswd

David wrote:
> Mike Morley wrote:
>> David wrote:
>>>
>>> Did you also make adjustments to your DNS

>>
>> What changes do I need to make?
>>
>> I haven't had this problem before.

>
>
> I actually was replying to another post, I don't know how I screwed this
> up so badly...... Sorry about that


hehehe,

No worries, I did think it a strange reply.
  #8 (permalink)  
Old 12-11-2006
David
 
Posts: n/a
Default Re: .htaccess .htpasswd

Mike Morley wrote:
> David wrote:
>> Mike Morley wrote:
>>> David wrote:
>>>>
>>>> Did you also make adjustments to your DNS
>>>
>>> What changes do I need to make?
>>>
>>> I haven't had this problem before.

>>
>>
>> I actually was replying to another post, I don't know how I screwed
>> this up so badly...... Sorry about that

>
> hehehe,
>
> No worries, I did think it a strange reply.


That is what happens when I get to many windows opened at the same time.
I will be much more careful in the future before pressing that send
button :) Again I am sorry for the confusion that it created.
  #9 (permalink)  
Old 12-11-2006
David
 
Posts: n/a
Default Re: .htaccess .htpasswd

<snip>

>>> No worries, I did think it a strange reply.

>>
>> That is what happens when I get to many windows opened at the same
>> time. I will be much more careful in the future before pressing that
>> send button :) Again I am sorry for the confusion that it created.

>
>
> As I said, don't worry about it. :)
>
> I don't suppose you have any idea how to resolve my issue do you?


Mike, I reread your original post and have a few ideas.

I do not believe that you can use plain text passwords. I see someone
else mentioned that already. What I did not see was nobody mentioned
that there is no file name to look for.

You said that you used the htpasswd -c .htpasswd test which is fine,,
but in you .htaccess file you have the following

AuthUserFile /var/www/html/careerGrad/private
AuthGroupFile /dev/null
AuthName "CareerGrad Members Area"
AuthType Basic

require valid-user

I believe the solution to your problem should be corrected by modifying
the following line with .htpasswd to the end such as the line below

AuthUserFile /var/www/html/careerGrad/private/.htpasswd


yes I think it is just that simple

-David
  #10 (permalink)  
Old 12-11-2006
Mike Morley
 
Posts: n/a
Default Re: .htaccess .htpasswd

David wrote:
> Mike Morley wrote:
>> David wrote:
>>> Mike Morley wrote:
>>>> David wrote:
>>>>>
>>>>> Did you also make adjustments to your DNS
>>>>
>>>> What changes do I need to make?
>>>>
>>>> I haven't had this problem before.
>>>
>>>
>>> I actually was replying to another post, I don't know how I screwed
>>> this up so badly...... Sorry about that

>>
>> hehehe,
>>
>> No worries, I did think it a strange reply.

>
> That is what happens when I get to many windows opened at the same time.
> I will be much more careful in the future before pressing that send
> button :) Again I am sorry for the confusion that it created.



As I said, don't worry about it. :)

I don't suppose you have any idea how to resolve my issue do you?
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0