You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Craig Hagerman <cr...@gmail.com> on 2006/12/01 13:52:55 UTC
[users@httpd] Setting up user login?
Hi,
Not sure if this is the right place for this question or not. If not,
maybe someone can point me in the right direction.
I run a Linux server (Ubuntu) running apache 2. I am struggling to try
to figure out how to add login to my web site. I already know about
.htaccess files, but that doesn't seem to be appropriate in this case.
.htaccess to to grant access to a directory. Rather, I want users who
log in to be able to see links and pages only available for registered
users. That is, I want to have a box with username/password on the web
site, then if users enter those and click login, the page will show
registered-user-only content. (Is this clear?) I think this is
probably an apache problem, but can't figure out what I should be
doing. Any help would be greatly appreciated.
Craig Hagerman
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Setting up user login?
Posted by Nick Kew <ni...@webthing.com>.
On Fri, 1 Dec 2006 21:52:55 +0900
"Craig Hagerman" <cr...@gmail.com> wrote:
> Hi,
>
> Not sure if this is the right place for this question or not. If not,
> maybe someone can point me in the right direction.
>
> I run a Linux server (Ubuntu) running apache 2. I am struggling to try
> to figure out how to add login to my web site. I already know about
> .htaccess files,
Don't confuse .htaccess with user authentication. See
http://www.regdeveloper.co.uk/2006/08/01/apache_undead/
> but that doesn't seem to be appropriate in this case.
> .htaccess to to grant access to a directory. Rather, I want users who
> log in to be able to see links and pages only available for registered
> users. That is, I want to have a box with username/password on the web
> site, then if users enter those and click login, the page will show
> registered-user-only content. (Is this clear?)
That works if you password-protect the registered-user-only content.
If you need something more sophisticated, you'll need to specify it.
Chapter 7 of my book deals with custom authentication and login.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org