Check this out here.
http://httpd.apache.org/docs-2.0/howto/auth.html
HTH ..
Could you please help me with this one. I am running Apache-2.x inside my LAN and wanted to protect some of its web page directories with passwords.
Here's my http.conf entries
<Directory "/var/www/html/private/">
Options None
AllowOverride AuthConfig
AuthName "Pls enter Password"
AuthType Basic
AuthDBMUserFile /etc/httpd/dbmpasswd
require valid-user user1 user2
</Directory>
My /etc/httpd/conf/httpd.conf
LoadModule auth_module modules/mod_auth.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
I already Create the password file:
/usr/sbin/dbmmanage /etc/httpd/dbmpasswd user1
/usr/sbin/dbmmanage /etc/httpd/dbmpasswd user2
Had Restarted Apache:
/etc/init.d/httpd restart
but whenever I invoked this command:
#dbmmanage /home/httpd/htdocs/html/private/users view
Can't tie /var/www/html/private/users: No such file or directory at /usr/sbin/dbmmanage line 196.
Therefore can't also make users access the private folder.
Help me pls. I'm already stuck for a couple of weeks now.
Thanks
Check this out here.
http://httpd.apache.org/docs-2.0/howto/auth.html
HTH ..
[quote author=Compunuts link=board=1;threadid=8096;start=0#msg73640 date=1068451608]
Check this out here.
http://httpd.apache.org/docs-2.0/howto/auth.html
HTH ..
[/quote]
I visited and made the procedures but can't seem to find the answer to my questions.
Pls shed some light as my I am a so confused already, since I am already stuck with this problem for a couple of weeks now.
I am currently working with my apache-2.x server which also my squirrel mail server. I currently use .htaccess for my web client's authentication.
IN THE ARTICLE YOU POSTED IS INDICATES:
The directives discussed in this article will need to go either in your main server configuration file (typically in a <Directory> section), or in per-directory configuration files (.htaccess files).
----In my case I wan't to use the DIRECTORY SERVER CONFIG. But have an existing .htaccess for my WEBMAIL DIRECTORY. Does this one have something to do with my problem?
Because, my apache logs provides the following:
Permission denied: /home/httpd/htdocs/html/private/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Yet, I used the DIRECTORY SERVER CONFIG FILE FOR MY USER AUTHENTICATION. How come it is still seeking for .htaccess file when I haven't define it in my http.conf directives?
<Directory "/var/www/html/private/">
Options None
AllowOverride AuthConfig
AuthName "Pls enter Password"
AuthType Basic
AuthDBMUserFile /etc/httpd/dbmpasswd
require valid-user user1 user2
</Directory>
Also, dbmmage view option provides the following:
# /usr/sbin/dbmmanage /etc/httpd/dbmpasswd view
user1:NkRRdEtu25k96
user2:7UNcbWVYhwE5g
How come I can't get that authentication?
Pls help me : (
Bookmarks