Apache 2.4 SSL 1.0.1端口冲突

时间:2014-12-05 20:17:46

标签: php apache ssl

拥有一个托管基于PHP的网站的apache环境。在配置SSL时遇到一些问题。 httpd-ssl.conf文件最初指向端口443.但是我改变了,因为我认为它需要指向在httpd.conf中配置的相同端口

以下是一些重要的httpd.conf配置

Listen 882
<virtualHost *:882>
        ServerAdmin admin@example.com
        DocumentRoot "/u/apache/htdocs/Hil"
        ServerName server1
</virtualHost>
<virtualHost *:882>
        ServerAdmin admin@example.com
        DocumentRoot "/u/apache/htdocs/Hil"
        ServerName server1
        <directory "/u/apache/htdocs/Hil">
                 Order allow,deny
           Allow from all
           # New directive needed in Apache 2.4.3:
           Require all granted
        </directory>
</virtualHost>

<IfModule mod_rewrite>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
</IfModule>

TraceEnable off 

下面我配置了httpd-ssl.conf文件。我将端口配置在httpd.conf的同一端口上,我不知道这是否正确。

Listen 882
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLPassPhraseDialog  builtin
SSLSessionCache        "shmcb:/u/apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

<VirtualHost _default_:882>

#   General setup for the virtual host
DocumentRoot "/u/apache/htdocs"
ServerName server1:882
ServerAdmin you@example.com
ErrorLog "/u/apache/logs/error_log"
TransferLog "/u/apache/logs/access_log"


SSLEngine on


SSLCertificateFile "/u/apache/conf/extra/certs/qa.cer"
SSLCertificateKeyFile "/u/apache/conf/extra/certs/qa.key"

当我启动httpd时,我收到以下错误

(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:882
no listening sockets available, shutting down
AH00015: Unable to open logs

0 个答案:

没有答案