【问题标题】:How to Add SSL Site to Zend Server如何将 SSL 站点添加到 Zend 服务器
【发布时间】:2012-02-24 14:24:53
【问题描述】:

我正在尝试向 Zend 添加一个安全站点。

当我在http://my_IP:10081 访问 Zend 服务器站点时,我可以看到,在服务器扩展下, “openssl 内置,开启”。

当我将 SSLEngine On 添加到 httpd.conf 时,我得到...

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

缺少这条线会给出....

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

Zend 网站的附录 F 说

Uncomment the following line...
Include conf/extra/httpd-ssl.conf

但是那行不在我的 conf 文件中,也没有指明路径。

目录 /usr/lib64/httpd/modules 没有名为 mod_ssl.so 或类似的文件。

这是 Red Hat 上的 Zend 5.5

PHP 版本 5.3.8-ZS5.5.0 Zend 框架版本 1.11.10

我的经理说这是一个非常标准的安装。任何帮助都会很棒。谢谢。

【问题讨论】:

    标签: php apache ssl redhat zend-server


    【解决方案1】:

    您的服务器上安装的 SSL 模块可能未启用。 试试看:sudo a2enmod ssl

    编辑:Nvm,我想我跳过了你说你使用 RedHat 的部分。我不相信 RedHat 中存在 a2enmod 等价物。

    RedHat 通常在 httpd.conf 中包含这些内容,您会在其中找到如下行:

    Include conf.d/*.conf

    这应该对应于位于/etc/httpd/conf.d 目录中的 ssl 配置文件。检查以确保存在这样的文件,以及它是否已在您的 httpd.conf 中配置。

    【讨论】:

    • 谢谢马特。不,a2enmod 未被识别。 conf.d 目录在那里,但缺少 SSL conf 文件。也许我会尝试找到一份副本并添加它。
    • 这里是conf.d的内容 /etc/httpd/conf.d/proxy_ajp.conf /etc/httpd/conf.d/README /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/zendserver_gui.conf /etc/httpd/conf.d/zendserver_php.conf
    • 太棒了!为什么我没有想到呢?我现在得到“default VirtualHost 在端口 443 上重叠,第一个优先”,但我很快就会解决这个问题。谢谢一百万。
    • PS 以防万一其他人跟随,它是 mod_ssl NB 下划线。
    • 好收获。此外,您遇到的有关重叠的错误是因为您尚未将 apache 配置为使用端口 443 作为虚拟主机。将此行添加到您的 httpd.conf:NameVirtualHost *:443
    猜你喜欢
    • 2017-11-10
    • 2011-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多