【问题标题】:Configure Httpd for SSL为 SSL 配置 Httpd
【发布时间】:2015-09-24 04:49:31
【问题描述】:

我在尝试了将近 4 小时和无休止的谷歌搜索之后才写这篇文章。

在我的 httpd.config 文件中添加 433 虚拟端口后,我收到此错误
“无效命令 'SSLEngine',可能拼写错误或由未包含在服务器配置中的模块定义”

这是我对 httpd.config 的补充

<VirtualHost *:443>
SSLEngine on                                                                
SSLProtocol all -SSLv2                                                      
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM                

SSLCertificateFile /path/unified.crt                           
SSLCertificateKeyFile /path/my-private-decrypted.key                        
SSLCertificateChainFile /path/sub.class1.server.sh2.ca.pem 
ServerAdmin root@localhost

DocumentRoot /var/www/html
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

我完全糊涂了!请任何人帮忙!谢谢 !

【问题讨论】:

    标签: apache ssl https httpd.conf


    【解决方案1】:

    终于修好了!

    在 httpd 运行中启用 ssl:

    sudo yum install mod24_ssl
    

    【讨论】:

    • 没有可用的包 mod24_ssl。错误:无事可做
    猜你喜欢
    • 2018-06-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-04
    • 2012-11-08
    • 2016-11-04
    • 2011-09-13
    • 1970-01-01
    • 2021-12-14
    相关资源
    最近更新 更多