我在MacOs Sierra上使用Apache 2.4.23。
我想在我的服务器上配置mod_auth_form模块。我已经使用了apache.org文档中的基本配置,但它无法正常工作,服务器无法启动,我得到的错误是:
无效的命令' SessionCryptoPassphrase',可能拼写错误或 由未包含在服务器配置中的模块定义
以下是导致此问题的httpd.conf的一部分:
<Location "/dologin.html">
SetHandler form-login-handler
AuthFormLoginRequiredLocation web/login.html
AuthFormLoginSuccessLocation web/beta/index.html
AuthFormProvider file
AuthUserFile /Users/passwords
AuthType form
AuthName "Access with form"
Session On
SessionCookieName session path=/
SessionCryptoPassphrase secret
</Location>
查看文档后我明白原因可能是我需要加载mod_session_crypto,所以我应该将它添加到我的配置中......
LoadModule session_crypto_module libexec/apache2/mod_session_crypto.so
...但我没有使用我的Apache版本的模块(我已经搜索了libexec文件夹)。
我可以在哪里下载以及如何安装它?
非常感谢
马修