Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Alex Schaft on August 01, 2001, 11:02:24 AM
-
Hi,
I'm trying to password protect a sub-directory off the primary web site with user names and passwords.
I've put a .htaccess, and .htpasswd file in the directory, and changed
AllowOverride None in the web root to AllowOverride AuthConfig in the httpd.conf file, but it is still getting ignored. What else am I missing?
-
Did you restart apache after modifying the conf file?
-
Repeatedly
-
Alex,
Although it's not recommended, the e-smith way to do it is:
#cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess10primary /etc/e-smith/templates-custom/etc/httpd/conf/httd.conf/90e-smithAccess10primary
Then modify this file to include the "AllowOveride AuthConfig" statement and then expand the template file with
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
Then restart apache
-
Lloyd Keen wrote:
>
> Alex,
> Although it's not recommended, the e-smith way to do it is:
> #cp
> /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess10primary /etc/e-smith/templates-custom/etc/httpd/conf/httd.conf/90e-smithAccess10primary
> Then modify this file to include the "AllowOveride
> AuthConfig" statement and then expand the template file with
> #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
> Then restart apache
Another e-smith way of doing it, and one which is recommeneded, by me at least, is to create a custom template fragement for httpd.conf, and add a block, which adds the password restriction that you want to add without using a .htaccess file.
Regards
Charlie