You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Diego, Emil" <ed...@exchange.sba.miami.edu> on 2002/03/05 16:23:26 UTC
Directory Security
Hello,
I am running apache 1.3 on redhat linux 7.2. My question is this.
How do i setup a directory on the website that requires a user to supply a
username and password. And where do I have to setup that account?
Emil Diego
Web Coordinator
University of Miami School of Business
ediego@miami.edu
ph: 305.284.5449
fx: 305.284.3404
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: Directory Security
Posted by Francisco Ruiz IbaƱez <fl...@comunet.es>.
In the apache/bin directory you have and command, htpasswd wich you create a
file containing the username a password. See the sintaxis, its easy to
config.
Then you use apache directives to limit access. Inside <directory..>
</directory> for example:
AuthUserFile <path to file created by .htpasswd>
AuthName "<Title will appear in validating pop-up>"
AuthType Basic <Type of autentication>
require user <user to login>
Also, you can write this line into a .htaccess file and put it in physically
in the directory you wnat protect. Use the directive AllowOverride to
activate this.
Sorry my poor english.
----- Original Message -----
From: "Diego, Emil" <ed...@exchange.sba.miami.edu>
To: "Apache User Mailing List (E-mail)" <us...@httpd.apache.org>
Sent: Tuesday, March 05, 2002 4:23 PM
Subject: Directory Security
> Hello,
>
> I am running apache 1.3 on redhat linux 7.2. My question is this.
> How do i setup a directory on the website that requires a user to supply a
> username and password. And where do I have to setup that account?
>
>
>
> Emil Diego
> Web Coordinator
> University of Miami School of Business
> ediego@miami.edu
> ph: 305.284.5449
> fx: 305.284.3404
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.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
For additional commands, e-mail: users-help@httpd.apache.org