This is a discussion on password protect directory within the Windows Web Servers forums, part of the Web Server and Related Forums category; I'm trying to set up a password for a web directory using .htaccess and ..htpasswd. The web server does ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to set up a password for a web directory using .htaccess and
..htpasswd. The web server does support this. The password box pops up when I try to access the directory - which is a good sign. But the password I enter doesnt work. I created a password using an online tool the file called .htaccess contains this: AuthUserFile /www/private/.htpasswd AuthGroupFile /dev/null AuthName NAME OF DIRECTORY AuthType Basic require user USERNAME and the .htpasswd file is uploaded to /www/private/ and contains the username:password can anyone help? thanks CH! |
|
|||
|
On Mon, 8 Nov 2004 20:16:05 -0000, "Chink!"
<nospampleasewe'rebritish@hahaha.com> wrote: >I'm trying to set up a password for a web directory using .htaccess and >.htpasswd. The web server does support this. > >The password box pops up when I try to access the directory - which is a >good sign. >But the password I enter doesnt work. >I created a password using an online tool >the file called .htaccess contains this: >AuthUserFile /www/private/.htpasswd >AuthGroupFile /dev/null >AuthName NAME OF DIRECTORY >AuthType Basic >require user USERNAME > >and the .htpasswd file is uploaded to /www/private/ >and contains the username:password >can anyone help? > >thanks >CH! Are you aware of the apache-installation-path/bin/htpasswd.exe program? You need it to create the password file. See also: http://httpd.apache.org/docs-2.0/programs/htpasswd.html Hope this helps, -- ) Kees Nuyt ( c[_] |
|
|||
|
>
> Are you aware of the apache-installation-path/bin/htpasswd.exe > program? You need it to create the password file. I used http://www.kxs.net/support/htaccess_pw.html is this the same thing? CH! |
|
|||
|
On Wed, 10 Nov 2004 06:29:07 -0000, "Chink!"
<nospampleasewe'rebritish@hahaha.com> wrote: >> >> Are you aware of the apache-installation-path/bin/htpasswd.exe >> program? You need it to create the password file. > >I used http://www.kxs.net/support/htaccess_pw.html >is this the same thing? > >CH! I'm not sure. For me, that site generated : john.doe:krne22gA6PM.3 where the htasswd program for Apache v2.0.50 generated : john.doe:$apr1$Z81.....$SJ3OhaIdy3dMLSw8/Nvsr/ It may depend on the Apache version and the type of authentication it uses which one is right. If you run your own server you should consult the manual of your version. If kxs.net provides you the webhosting I would expect their passwordencryption page is correct for use on their server, in which case I have no explanation why it doesn't work for you. They provide support, so maybe they can explain? Good luck. -- ) Kees Nuyt ( c[_] |