Доброго всем времени суток.
Возникла необходимость заблокировать директорию web-сервера при помощи .htaccess.
Директория /var/www/html/redirector
В конфиг апача внес строки:
AccessFileName .htaccess
<Directory "/var/www/html">
AllowOverride All
</Directory>
В директории /var/www/html/redirector
Создал файлы .htaccess и .htpasswd (при помощи команд: touch .htaccess /usr/bin/htpasswd -c /var/www/html/redirector/.htpasswd teacher соответственно).
Однако при обращении по указанному адресу получаю в браузере:
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
Help!
В логах:
[Wed Oct 10 20:39:03 2012] [alert] [client 192.168.0.100] /var/www/html/redirector/.htaccess: Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration