OnWed, 6 Feb 2002 16:38:12 +0700 "LTG" <012990918@mobitel.com.kh> wrote:
I just update my box from SuSe6.4 to SuSE7.0. I want to restrict my site from http users. I do as following: 1. add the below line to /etc/httpd/httpd.conf Alias lonh "/home/88/slonh/"
Options None AllowOverride AuthConfig AuthType Basic AuthDBuserFile /etc/httpd/.htaccess' require valid-user </Directory> 2. /usr/bin/dbmmanage /httpd/.htaccess adduser lonh 3. restarting apache Did I miss something? Yah, I use apache-1.3.12-93.
I've never used the dbmmanage program, just try using "htpasswd". Like htpasswd /etc/httpd/htpasswd slonh yourpassword You might be confusing the htpasswd and .htaccess files You didn't mention it, but you need to put a ".htaccess" file in /home/88/slonh. Something like: .htaccess ################################ AuthUserFile /etc/httpd/passwd # (don't know if your .htaccess will work here) AuthGroupFile /dev/null AuthType Basic AuthName Restricted <Limit GET POST> require user slonh <Limit> ################################# now your /etc/httpd/passwd should look like this slonh $.j jglk)/............. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}