Forum Moderators: phranque

Message Too Old, No Replies

.htaccess does not work

         

tangz

1:35 am on Oct 6, 2005 (gmt 0)



Hello everyone,

I seem to be having an issue with using .htaccess and .htpasswd files on my redhat apache server.
the web directory is...
/var/www/html/intranet/
the htpasswd file is located...
/var/www/html/.htpasswd
the .htgroups file is located...
/var/www/html/.htgroups
I have an .htaccess file in the /username directory
all files within the site are chmod 777

contents of htaccess...
AuthUserFile /var/www/html/.htpasswd
AuthGroupFile /var/www/html/.htgroups
AuthName "Restricted area: Please authenticate"
AuthType Basic
Satisfy All
<Limit GET POST>
require group it
</Limit>

contents of http.conf (only what I have changed for this venture)
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>

can someone PLEASE tell me what I am doing wrong. I have been at this for about 5 hours and regardless of if I add jibberish to the htaccess file or not the pages still come up with no problem.

coopster

1:00 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, tangz.

Have you been using the Apache htpasswd utility [httpd.apache.org] to populate your user/password Basic Authentication file? The Apache site is a very good resource:

Authentication example [httpd.apache.org]
Authentication Tutorial [httpd.apache.org]