0
今天我正在查看我在apache2中发现这个异常的日志。SNI错误Apache2日志
[ssl:error] [pid 29646] AH02032: Hostname page_not_found provided via SNI and hostname www.site.ltd provided via HTTP are different
因为我不是关于这个问题很熟悉,我看周围的一些指导,但我不明白了很多关于如何解决它...... 在我的配置我有一个虚拟主机这是默认。在Apache或PHP的任何其他文件是默认
我读的时候你有在同一个地方不同的证书很多虚拟主机出现问题,但这不是我的情况......
我怎样才能修复问题?下面你能找到配置!
PHP 5.6.17-3 + deb.sury.org〜信赖+ 1(CLI)
Server版本:阿帕奇/ 2.4.7(Ubuntu的)
的/ etc /主机的默认文件
默认的ssl.conf
<VirtualHost *:80>
ServerName www.site.ltd
ServerAdmin [email protected]
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
默认的ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLEngine On
ServerAdmin [email protected]
SSLStrictSNIVHostCheck off
ServerName www.site.ltd
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/site.crt
SSLCertificateKeyFile /etc/apache2/ssl/site.key
SSLCACertificateFile /etc/apache2/ssl/intermediate_site_ca.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet