Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 23:54:55 -0700
From:      "Derrick Ryalls" <ryallsd@datasphereweb.com>
To:        "'admin'" <admin2@enabled.com>, <freebsd-questions@freebsd.org>
Subject:   RE: .htpasswd creation
Message-ID:  <002501c349d4$d8b23d40$0200a8c0@bartxp>
In-Reply-To: <20030714063616.M92191@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>=20
>=20
> On Sun, 13 Jul 2003 23:18:36 -0700, Derrick Ryalls wrote
> > > can somebody explain to me how to create a .htpasswd
> > > password? I dont want to use online password generators.
> >=20
> > http://httpd.apache.org/docs-2.0/howto/auth.html
>=20
>=20
>=20
> okay thanks,
>=20
> OS: FreeBSD 4.8
> Apache:  1.3.27
>=20
> but I am having the strangest issue with my .htaccess file
>=20
> --- snip ---
>=20
> AuthName "Protected Area Name"
> AuthUserFile /usr/local/www/data/phpMyAdmin/.htpasswd
> AuthType Basic
> Require user noah
>=20
> --- snip ---
>=20
> shell# htpasswd -c .htpasswd noah
> New password:
> Re-type new password:
> Adding password for user noah
>=20
> okay so I have the proper files in place. =20
>=20
> shell# ls -l .ht*
> -rw-r--r--  1 root  wheel  121 Jul 13 23:36 .htaccess
> -rw-r-----  1 root  wheel   19 Jul 13 23:33 .htpasswd
> shell# pwd
> /usr/local/www/data/phpMyAdmin
>=20
> my browser asks for a password but I never get allowed past=20
> the password popup.
>

I assume you have that directory marked in your httpd.conf.  Apache
recommends putting all the config stuff that would go in .htaccess in
httpd.conf if you are the admin.  I believe that htaccess stuff is the
same for 1.3.x and 2.x, so here is what I have on a 2.x system:

<Directory /usr/local/www/data/patches>
        AuthType Basic
        AuthName "Clan Files"
        AuthUserFile /usr/local/www/passwords
        Require user fishhead
</Directory>

Note:  my password file is not in a web publishable area, doesn't need
to be and was created from the link above.

So try using this method and doing a apachectl restart and see if it
fixes it for you.

-Derrick




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c349d4$d8b23d40$0200a8c0>