Add new comment
Do you like HowtoForge? Please consider to support us by becoming 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
17 hours 22 min ago
18 hours 7 min ago
1 day 5 hours ago
1 day 8 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 23 hours ago