[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Dumb question with .htaccess (RH6.2)
- From: "Alan Mead" <amead8695 home com>
- To: <redhat-list redhat com>
- Subject: Re: Dumb question with .htaccess (RH6.2)
- Date: Thu, 17 May 2001 22:38:31 -0500
From: Brian Coughter <brianc bluewaterg com>
: How can I create a username and password field on my homepage that
: authenticates to a .htaccess file in the users home directory and then
: redirects the user to that user's home directory (i.e.
domain.com/~username)
I'm not sure that I understand your question... You can create an htaccess
file in a directory that requires user's to authenticate themselves. There
is nothing special about this and the Apache docs at www.apache.org describe
how to do this. You will create the "accounts" with htpasswd or possibly
with some CGI that you find that allows the users to manage their password
information themselves.
To redirect them all to one URL, you could use a static page. To have each
go to his/her own page, you will need some sort of dynamic process. If you
can run cgi scripts in your directory, then I would create a small perl
script called index.cgi. I would write index.cgi to read the username
(REMOTE_USER) and simply print redirection headers (I don't recall the exact
syntax) with the usert's home page as the URL. I'll bet something like PHP
would work as well.
Hope this helps.
-Alan Mead
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]