[K12OSN] password protect web dirs with htaccess?

debbie at redeemer.qld.edu.au debbie at redeemer.qld.edu.au
Sun Jan 23 02:21:58 UTC 2005


Thanks Les & Shabbir... our staff directories are now safe from students'
inquisitive eyes!

In httpd.conf I altered:
#       AllowOverride None
#       Allow from all
#
# ... to ...
#
#       AllowOverride All
#       Allow from all


Quoting Les Mikesell <les at futuresource.com>:

> On Sat, 2005-01-22 at 03:57, debbie at redeemer.qld.edu.au wrote:
>
> > I want to password protect some directories in /var/www/html/ for staff
> only.
> > I've used .htaccess & .htpasswd files in the past using far-away host
> machines
> > and FTP but never on my own linux box on an intranet. And it's not working,
> > i.e. no pop up asking for a password, I can access the 'secure' directory.
> >
> > I have the .htaccess file in /var/www/html/staffonly/ and the .htpasswd
> file in
> > /var/www/... is there something else I should know about the php.ini or
> other
> > apache setting to make this all work?
>
> There is an
> AllowOverride None
> in your httpd.conf that keeps it from even trying to read .htaccess
> files. You need to set
> AllowOverride All
> or at least
> AllowOverride FileInfo AuthConfig Limit
> for the locations you want the .htaccess file read.
>
> --
>   Les Mikesell
>    les at futuresource.com
>
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>



 




More information about the K12OSN mailing list