我正在尝试使用mod_authn_dbd
来密码保护目录。
我使用了apache help page中的代码,但它正在DBDriver
行
# mod_dbd configuration
DBDriver mysql //modified
DBDParams "dbname=mydbname user=myuser password=mypass" //modified
/path/to/folder/.htaccess: Invalid command 'DBDriver', perhaps misspelled or defined by a module not included in the server configuration
。
文档说Please note that you need to load an authorization module, such as mod_authz_user, to get it working.
但我不知道该怎么做。
知道如何解决这个问题吗?