Hi all, 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/" <Directory "/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. Any help will be grately appreciated. thanks in advance Regards, LTG
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/" <Directory "/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);}}
Hi zentara, Thanks for your time. I want to know somthing more about this. Could you point me to any site talking about this or send me the documentation about this? Thanks in advance Best Regards, lonh ----- Original Message ----- From: "zentara" <zentara@gypsyfarm.com> Cc: <suse-linux-e@suse.com> Sent: Wednesday, February 06, 2002 7:11 PM Subject: Re: [SLE] Appache
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/" <Directory "/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);}}
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thu, 7 Feb 2002 09:04:27 +0700 "LTG" <012990918@mobitel.com.kh> wrote:
Hi zentara,
Thanks for your time. I want to know somthing more about this. Could you point me to any site talking about this or send me the documentation about this? Thanks in advance
Do a google search for "htaccess"; there are so many good tutorials that I don't know which one to point you to. For articles fron SuSE: http://www.linux-knowledge-portal.org/en/index.php and enter "htaccess" in the searchbox Happy Reading.................. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
participants (2)
-
LTG
-
zentara