HP3000-L Archives

July 2001, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Mon, 30 Jul 2001 17:04:03 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
"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 *

ATOM RSS1 RSS2