[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] htpasswd authentication



I am trying to password protect a (web) directory called admin.

Below is my .htaccess for the admin directory:
---------------------------------------------------------
AuthUserFile /home/sites/sitex/etc/passwd
AuthGroupFile /dev/null
AuthName Admin
AuthType Basic

#order deny,allow
#deny from all
#allow from xxx.xx.xx.xxx

require valid-user
---------------------------------------------------------


I am getting below error:
------------------------------------------------------
[error] (2)No such file or directory: access to /admin/ failed for xxx.xxx.xxx.xx,
reason: User not known to the underlying authentication module
-------------------------------------------------------



Below is the virtual host section from httpd.con
------------------------------------------------

<VirtualHost xx.xx.xx.xx>
ServerName www.mydomain.com
ServerAdmin admin
DocumentRoot /home/sites/sitex/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                
!^xx.xx.xx.xx(:80)?$
RewriteCond %{HTTP_HOST}                
!^www.mydomain.com(:80)?$
RewriteRule ^/(.*)                      
http://www.mydomain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? 
/home/sites/sitex/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? 
/home/sites/sitex/users/$1/web/$3
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>
-------------------------------------------------


__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com