[lug] How to get .htaccess to work with user directories?
Riggs, Rob
RRiggs at doubleclick.net
Wed Aug 22 15:18:41 MDT 2001
Add "AllowOverride AuthConfig" to the directory entry in your httpd.conf
file. If your running Red Hat, Apache is configured to use
/home/*/public_html as the user directory. In the httpd.conf file there is a
commented out section that sets various permissions for this directory,
including AuthConfig. Simply uncommenting that section of the httpd.conf
file (and reloading Apache) would do the trick.
-----Original Message-----
From: Bill Thoen [mailto:bthoen at gisnet.com]
Sent: Tuesday, August 21, 2001 8:08 AM
To: BLUG
Subject: [lug] How to get .htaccess to work with user directories?
I can get .htaccess files to password protect directories under my
document root tree, but for some reason they are ignored in user
directories. How do I fix this?
F'r instance, if I create a user account called hmc, and in
httpd.conf I set UserDir to /projects/*/www, and I put an .htaccess
file in /projects/hmc/www, setting AuthUserFile to
/projects/hmc/www/.htpasswd, the pages in that directory are served
right up without a challenge when a browser looks for
www.gisnet.com/~hmc. If I change the directory to one under my
DocumentRoot and copy these same files into that directory, it works
fine.
Anyone have any ideas?
--
- Bill Thoen
------------------------------------------------------------
GISnet, 1401 Walnut St., Suite C, Boulder, CO 80302
tel: 303-786-9961, fax: 303-443-4856
mailto:bthoen at gisnet.com, http://www.gisnet.com
------------------------------------------------------------
_______________________________________________
Web Page: http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list