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: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
"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 |
|
|||
|
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 > > |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
<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 |
|
|||
|
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 | |
|
|