当我在我们的Apache服务器上运行configtest时,我得到以下内容:
`Syntax error on line 1023 of /www/conf/httpd.conf: Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration`
我知道这部分的configuration工作。 有没有把configtest mod_ssl意识到的技巧?
编辑:RHEL4,非标准的Apache 1.3安装? 我只是想将ssl访问日志格式修复到Webalizer可以让我们更清楚地了解谁还在使用这个东西,然后再把这个东西放下。 既然它消失了,没有必要为这个方面的项目升级apache。
当mod_ssl没有加载时,你会得到这个错误,因为这个Apache不知道SSLEnableconfiguration指令。 确保在你的configuration中安装并启用了mod_ssl,通过运行httpd -M你可以得到一个模块列表。 如果未列出ssl_module,则可以通过运行yum install mod_ssl (假设RedHat EL使用yum作为CentOS的包pipe理器)。
如果我理解正确,你已经安装了mod_ssl并且可以在configuration中运行,但是在运行configtest时仍然收到一个错误。
你使用适合你的安装的apachectl吗? 如果你已经安装了一个软件包,并且从源代码编译,那么你可能会用一个不是mod_ssl的二进制文件运行apachectl。