Koozali.org formerly Contribs.org

.htaccess file getting ignored

Alex Schaft

.htaccess file getting ignored
« 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?

Lloyd Keen

Re: .htaccess file getting ignored
« Reply #1 on: August 01, 2001, 12:19:06 PM »
Did you restart apache after modifying the conf file?

Alex Schaft

Re: .htaccess file getting ignored
« Reply #2 on: August 01, 2001, 12:24:53 PM »
Repeatedly

Lloyd Keen

Re: .htaccess file getting ignored
« Reply #3 on: August 01, 2001, 04:10:24 PM »
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

Charlie Brady

Re: .htaccess file getting ignored
« Reply #4 on: August 04, 2001, 12:37:49 AM »
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