Mercantilum,
Thank you for your reply but unfortunately my problem is not solved with this. I am attaching my .htaccess, htpasswd and htgroup file for your reference. also I am attaching my httpd.conf part where I think something can be changed to do this.
-------- .htacces file ----
AuthType Basic
AuthName "Password Required"
AuthUserFile /var/www/html/.htpasswd
AuthGroupFile /var/www/html/.htgroup
Require user test
--------------------------
-------- .htpasswd file ----
test:0$MwnHBW3Bgow
--------------------------
--- .htgroup file ----
user-list: test
-------------------------
---------------.httpd.conf
User apache
Group apache
ServerAdmin root@root.com
UseCanonicalName off
DocumentRoot "/var/www/html"
<Directory />
Options Includes ExecCGI FollowSymLinks
AllowOverride AuthConfig
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
<LocationMatch "^/$>
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
<IfModule mod_userdir.c>
UserDir disable
</IfModule>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Alias /manual "/var/www/manual"
<Directory "/var/www/manual">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<IfModule mod_cgid.c>
Scriptsock run/httpd.cgid
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride AuthConfig
Options None
Order allow,deny
Allow from all
</Directory>
-----------------------
waiting for a reply!
Mansoor
Main Topics
Browse All Topics





by: MercantilumPosted on 2004-06-02 at 06:19:52ID: 11211988
Did you read this as well http://httpd.apache.org/do cs/howto/h taccess.ht ml
le
Ensure you have all the below in your .htaccess
AuthType Basic
AuthName "Password Required"
AuthUserFile /www/passwords/password.fi
AuthGroupFile /www/passwords/group.file
Require Group admins
Could be
Require user myname
instead...