Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;SSL输入筛选器读取失败“;Apache和443_Apache_Ssl_Https - Fatal编程技术网

&引用;SSL输入筛选器读取失败“;Apache和443

&引用;SSL输入筛选器读取失败“;Apache和443,apache,ssl,https,Apache,Ssl,Https,我的apache配置有点问题。当我阅读错误日志时,我可以看到: [client xxx.xxx.xx.xx] AH01964: Connection to child 1 established (server www.mywebsite.com:443) [client xxx.xxx.xx.xx] AH01964: Connection to child 6 established (server www.mywebsite.com:443) [client xxx.xxx.xx.xx] A

我的apache配置有点问题。当我阅读错误日志时,我可以看到:

[client xxx.xxx.xx.xx] AH01964: Connection to child 1 established (server www.mywebsite.com:443)
[client xxx.xxx.xx.xx] AH01964: Connection to child 6 established (server www.mywebsite.com:443)
[client xxx.xxx.xx.xx] AH01964: Connection to child 10 established (server www.mywebsite.com:443)
[client xxx.xxx.xx.xx] AH01964: Connection to child 15 established (server www.mywebsite.com:443)
[client xxx.xxx.xx.xx] AH01964: Connection to child 18 established (server www.mywebsite.com:443)
(70014)End of file found: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
(70014)End of file found: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
(70014)End of file found: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
(70014)End of file found: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
(70014)End of file found: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
有时候,这个:

 (70007)The timeout specified has expired: [client xxx.xxx.xx.xx] AH01991: SSL input filter read failed.
其实我不知道。。。所以我的网站是完整的HTTP,除了两页HTTPS。下面是我的虚拟主机:

<VirtualHost *:80>
    ServerName mywebsite.com
    Redirect permanent / http://www.mywebsite.com/
</VirtualHost>
<VirtualHost *:80>
    ServerName www.mywebsite.com
    ServerAlias img.mywebsite.com
    ServerAdmin xxx
    DocumentRoot /home/mywebsite/www/public
    <Directory /home/mywebsite/www/>
        Options Indexes Multiviews FollowSymlinks
        AllowOverride All
        Require all granted
        ErrorDocument 403 http://www.google.com/
    </Directory>
    <Directory /home/mywebsite/www/public/resource/private/>
        Require all denied
        ErrorDocument 403 http://www.mywebsite.com/
    </Directory>
    <Location "/robots.txt">
            Require all granted
    </Location>

    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/mywebsite_error.log
    CustomLog ${APACHE_LOG_DIR}/mywebsite_access.log combined
</VirtualHost>
<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerName www.mywebsite.com
        DocumentRoot /home/mywebsite/www/public
            <Directory /home/mywebsite/www/>
                Options Indexes FollowSymlinks Multiviews
                AllowOverride all
                Require all granted
            </Directory>
        LogLevel info
        ErrorLog ${APACHE_LOG_DIR}/mywebsite_error.log
        CustomLog ${APACHE_LOG_DIR}/mywebsite_access.log combined

        SSLEngine on
        SSLCertificateFile ./mywebsite.crt
        SSLCertificateKeyFile ./mywebsite.key
        SSLCertificateChainFile ./intermediate.crt
    </VirtualHost>
</IfModule>

服务器名mywebsite.com
重定向永久/http://www.mywebsite.com/
服务器名www.mywebsite.com
ServerAlias img.mywebsite.com
服务器管理员xxx
DocumentRoot/home/mywebsite/www/public
选项索引多视图跟随符号链接
允许超越所有
要求所有授权
错误文档403http://www.google.com/
要求全部拒绝
错误文档403http://www.mywebsite.com/
要求所有授权
日志级别信息
ErrorLog${APACHE_LOG_DIR}/mywebsite_error.LOG
CustomLog${APACHE\u LOG\u DIR}/mywebsite\u access.LOG组合
服务器名www.mywebsite.com
DocumentRoot/home/mywebsite/www/public
选项索引跟随符号链接多视图
允许超越所有
要求所有授权
日志级别信息
ErrorLog${APACHE_LOG_DIR}/mywebsite_error.LOG
CustomLog${APACHE\u LOG\u DIR}/mywebsite\u access.LOG组合
斯伦金安
SSLCertificateFile./mywebsite.crt
SSLCertificateKeyFile./mywebsite.key
SSLCertificateChainFile./intermediate.crt
那么,我哪里做错了?我找不到。。。你能帮我吗


谢谢:)

我读到Apache不支持基于名称的虚拟主机上的SSL,只支持基于IP的虚拟主机上的SSL。所以我改变了它:

  <VirtualHost *:443>

作者:

  <VirtualHost 192.168.1.1:443>

就目前而言,它似乎有效,我不知道这是否是一个好的解决方案,但我没有任何错误