lefthook Posted December 25, 2002 Report Share Posted December 25, 2002 I cannot get .htaccess working. I have a dir under doc root which I want to secure (/var/www/apache/htdocs/user-x. I have: .htaccess file in that dir: AuthUserFile /www/htdocs/secure/.htpasswd AuthGroupFile /dev/null AuthName My Secure Directory AuthType Basic require valid-user & I made .htpasswd file Ok. I tried to check chmods, but no. .htaccess is configured in httpd.conf. Just nothing happens I can browse dir where .htacess file is without restrictions. What I'm missing? or other ways to sec dirs? Quote Link to comment Share on other sites More sharing options...
paul Posted December 25, 2002 Report Share Posted December 25, 2002 you need to change the conf in httpd.conf or commonhttpd.conf or even maybe vhost/Vhost.conf and put in the <directory> tree AllowOverride All then .htaccess will work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.