Bluehost.com Web Hosting $6.95

password protect directory

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2004
Chink!
 
Posts: n/a
Default password protect directory

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!


  #2 (permalink)  
Old 11-09-2004
Kees Nuyt
 
Posts: n/a
Default Re: password protect directory

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[_]
  #3 (permalink)  
Old 11-10-2004
Chink!
 
Posts: n/a
Default Re: password protect directory

>
> 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!


  #4 (permalink)  
Old 11-11-2004
Kees Nuyt
 
Posts: n/a
Default Re: password protect directory

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[_]
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 11:17 PM.


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