[98010] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Password protect a page using .htaccess

daemon@ATHENA.MIT.EDU (Ronnie Thum)
Fri Nov 6 08:17:12 1998

Date: Fri, 6 Nov 1998 21:12:23 +0800 (MYT)
From: Ronnie Thum <csi41298@wira2.cs.usm.my>
To: Red Hat Mailing List <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


I'm using Apache 1.2.4. I would like to set up a password protection for 
a directory which contains a web page.
I tried using the .htaccess method but the prompt doesn't come out but says
'You don't have permission to access /secure/mainframe.html on this server'

My *.conf files is in /etc/httpd/conf/*.conf
Here are my location of my login page (index.html)
--> /home/httpd/html/index.html
--> /home/httpd/html/.htpasswd

The page I want to protect is in 
--> /home/httpd/html/secure/mainframe.html
--> /home/httpd/html/secure/.htaccess

My content of the .htaccess is
----
AuthUserFile /home/httpd/html/.htpasswd
AuthGroupFile /dev/null
AuthName My Page
AuthType Basic

<LIMIT GET>
require valid-user
</LIMIT>
------

I need this problem solve asap. I'll be glad to send more info if required.

Rgds
Ronnie



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post