我正在尝试使用以下方法实现传递目录身份验证:
Auth Name "Restricted Area"
AuthType Basic
AuthUserFile /home/.htpasswd
AuthGroupFile /dev/null
require valid-user
这是100%正确。
似乎问题在于apache模块?
我正在使用Apache2和Ubuntu 13.04
给我错误:
[Wed Sep 11 22:40:07 2013] [alert] [client xxx.xx.xxx.xx] /home/somebody/public_html/somewebsite/.htaccess: Invalid command 'Auth', perhaps misspelled or defined by a module not included in the server configuration
如何解决?