我在我的切诺基networking服务器上有一个目录,我正在尝试密码保护,所以当我尝试从networking浏览器input密码时,popup要求高的用户名和密码。 不用说,我陷入了困境。
我已经创build了.htaccess文件:
AuthUserFile /srv/http/protected AuthGroupFile /dev/null AuthName "Protected Stuff" AuthType Basic Require valid-user
我使用了apache-tools的htpasswd命令:
htpasswd -c .htpasswd wdkrnls
我configuration了切罗基在/受保护的目录需要htpasswd身份validation并重新启动的行为规则。 当我在目录中导航时,我得到Error 405 Method Not Allowed 。
我还需要做什么? 谢谢你的帮助。
切诺基不支持Apache mod_authn_file指令。 您需要使用cherokee-admin来configurationhtpasswd身份validation: 