DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: x1ng on August 31, 2005, 05:17:34 PM



Title: .htaccess not working on apache 2.054
Post by: x1ng on August 31, 2005, 05:17:34 PM
i am trying to protect my private folder with .htaccess
here is what i did
root@x1ng:~#htpasswd -cm htpasswd x1ng
New password:
Re-type new password:
Adding password for user x1ng

root@x1ng:~#pwd
/root

root@x1ng:~#pico /usr/local/apache2/htdocs/private/.htaccess

AuthUserFile /root/htpasswd
AuthName "Enter Password"
AuthType Basic
require user x1ng


but when i am trying to open the private folder its open without any passwdord.
by the way i have mod_access.so mod_auth.so loaded in the httpd.conf


Title: .htaccess not working on apache 2.054
Post by: Jorge on August 31, 2005, 06:12:08 PM
if i remember the configuraton frol the DevSite package correcly you need to allow use of htaccess files.

read this:
http://forums.devside.net/viewtopic.php?t=581