Add new comment
Want to support HowtoForge? Become a subscriber!
|
hi, i agree that by default that the .htaccess file didn't work on Debian Sarge. Instead i just copied what was in the file to the main configuration (apache2.conf) and enclosed it in a < Directory > container
e.g.
< Directory /var/www/www.example.com/web/monitoring >
AuthType Basic
AuthName "Password Required"
AuthUserFile /var/www/www.example.com/.htpasswd
limit GET PUT POST
require valid-user
< /limit >
< /Directory >
and then I follwed the remaining steps to make the .htpasswd file and it worked perfectly!
Thanks for the great Howto!
Reply |



Recent comments
14 hours 55 min ago
19 hours 44 min ago
1 day 33 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 3 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 17 hours ago