AuthBasicFake 指令失败

AuthBasicFake 指令失败

像这样简单的事情:

   <Location /smcares/>
     AuthBasicFake demo demopass
   </Location>

引发错误:

Invalid command 'AuthBasicFake', perhaps misspelled or defined by a module not included in the server configuration

auth_basic 已加载,apache 版本为 2.4.29

答案1

检查模块是否已加载

apachectl -M | grep auth_basic

你应该得到如下结果:

auth_basic_module (shared)

如果没有,请启用它并重新启动 apache

sudo a2enmod auth_basic

相关内容