"Legault, Raymond D" wrote:
>
> Hi
>
> I need help in setting up Apache to use file authentication.
>
> Does anyone have an example of the httpd.conf, access.conf , srm.conf and .htaccess file settings.
>
> We just wish to have a prompt for a password when we execute our page. We are running a Cobol program on the Hp which works great.
>
> Can any one help?
The following URL should lead you where you need to go:
http://httpd.apache.org/docs/mod/mod_auth.html
Basically (and off the top of my head without testing), you want to create a
.htaccess file in the directory you want to protect (assuming you've enabled
.htaccess files in httpd.conf), and that .htaccess file should contain
something like this:
AuthType Basic
AuthName "Foo Bar"
AuthUserFile /some/path/to/password/file
Require valid-user
And you maintain /some/path/to/password/file with the htpasswd utility,
described at:
http://httpd.apache.org/docs/programs/htpasswd.html
It's REALLY IMPORTANT to put /some/path/to/password/file in a place outside of
your normal web content directory tree so a browser couldn't try to read this
file to steal your passwords.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *