You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Blomstrom <da...@yahoo.com> on 2004/07/21 20:23:54 UTC

[users@httpd] Password Protected Pages

I want to learn how to make password-protected pages,
so I asked "How do I get started?" on another forum. I
assumed I'd be using a PHP solution, since I'm
studying PHP.

But someone told me the best solution is Apache,
though I don't understand exactly why. Can anyone on
this list any of the following questions?:

1. Can you indeed use Apache to make
password-protected pages?

2. If so, what advantages would an Apache solution
have over a PHP solution?

3. Can you refer me to a tutorial that illustrates how
to make Apache password-protected pages?

I should also mention "sessions." I guess this
generally goes hand in hand with passwords, but I
wasn't sure if there are any differences. Anyway,
sessions is a term I want to understand better in the
broader context of password-protected pages.

Thanks!



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
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] Password Protected Pages

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 21 Jul 2004 11:23:54 -0700 (PDT), David Blomstrom
<da...@yahoo.com> wrote:
> I want to learn how to make password-protected pages,
> so I asked "How do I get started?" on another forum. I
> assumed I'd be using a PHP solution, since I'm
> studying PHP.
> 
> But someone told me the best solution is Apache,
> though I don't understand exactly why. Can anyone on
> this list any of the following questions?:
> 
> 1. Can you indeed use Apache to make
> password-protected pages?
> 
> 2. If so, what advantages would an Apache solution
> have over a PHP solution?
> 
> 3. Can you refer me to a tutorial that illustrates how
> to make Apache password-protected pages?
> 
> I should also mention "sessions." I guess this
> generally goes hand in hand with passwords, but I
> wasn't sure if there are any differences. Anyway,
> sessions is a term I want to understand better in the
> broader context of password-protected pages.

See:
http://httpd.apache.org/docs-2.0/howto/auth.html
for a basic tutorial on authentication in apache.

The main advantage to this type of auth (called HTTP basic or digest
auth) is its simplicity and ease of configuration.  The main
disadvantage is its lack of flexibility.  This is do to the fact that
the "session" is completely controlled by the browser.  All the server
does is say "this page needs a password".  The server decides how to
get that password from the user (usually through a pop-up box) and
when to send that password to the server.  So there is no easy way to
change the login page or to logout a user or anything like that.

If you use php instead, then you get to role your own session
management using cookies or special URLs.  This is a little more
complicated, but it gives you more flexibility in controlling the
setup and tear-down of sessions.

Joshua.

---------------------------------------------------------------------
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


[users@httpd] Netmania webmail setup problem

Posted by Andrew Berkowitz <ba...@rocketmail.com>.
I set up Netmania Webmail once before and the installation was easy.
But now I cannot get it to work in a new installation. Any suggestions
would be appreciated.

When I try to log in, I am directed to the auth_error.php page and
receive a message "Please confirm your ID and Password"

I am using Apache 2.0.46 & php 4.3.7

I can see the new database in MySQL from the installation. There
are no errors in the Apache error_log, var/log/messages,
var/log/maillog, or var/log/secure. I have a lot of other PHP/MySQL
pages working great.

Thank you in advance.


---------------------------------------------------------------------
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] Password Protected Pages

Posted by List <li...@nchost.net>.
> 1. Can you indeed use Apache to make
> password-protected pages?

use .htaccess . works with IIS too
 
> 2. If so, what advantages would an Apache solution
> have over a PHP solution?

its only 1 file. Dont need lotsa field
 
> 3. Can you refer me to a tutorial that illustrates how
> to make Apache password-protected pages?

go to google and search for htaccess

---------------------------------------------------------------------
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