ssl

ssl 添加后后台无法访问,http可以登录,https无法登录后台

发布于 2019-08-16 22:24:53

ssl 添加后后台无法访问,http可以登录,https无法登录后台
请问是什么问题

添加ssl后无法登录后台

<VirtualHost *:80>

ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/a.sd.cn/public"
ServerName 2c8a957d.a.sd.cn
ServerAlias a.sd.cn
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/a.sd.cn-error_log"
CustomLog "/www/wwwlogs/a.sd.cn-access_log" combined
#HTTP_TO_HTTPS_START
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R=301]
</IfModule>
#HTTP_TO_HTTPS_END


#DENY FILES
 <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
   Order allow,deny
   Deny from all
</Files>

#PHP
<FilesMatch \.php$>
        SetHandler "proxy:unix:/tmp/php-cgi-70.sock|fcgi://localhost"
</FilesMatch>

#PATH
<Directory "/www/wwwroot/a.sd.cn/public">
    SetOutputFilter DEFLATE
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>

</VirtualHost>
<VirtualHost *:443>

ServerAdmin webmasterexample.com
DocumentRoot "/www/wwwroot/a.sd.cn/public"
ServerName SSL.a.sd.cn
ServerAlias a.sd.cn 
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/a.sd.cn-error_log"
CustomLog "/www/wwwlogs/a.sd.cn-access_log" combined

#SSL
SSLEngine On
SSLCertificateFile /www/server/panel/vhost/cert/a.sd.cn/fullchain.pem
SSLCertificateKeyFile /www/server/panel/vhost/cert/a.sd.cn/privkey.pem
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
SSLProtocol All -SSLv2 -SSLv3
SSLHonorCipherOrder On

#PHP
<FilesMatch \.php$>
        SetHandler "proxy:unix:/tmp/php-cgi-70.sock|fcgi://localhost"
</FilesMatch>


#DENY FILES
 <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
   Order allow,deny
   Deny from all
</Files>

#PATH
<Directory "/www/wwwroot/a.sd.cn/public">
    SetOutputFilter DEFLATE
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>

</VirtualHost>

网站 a.sd.cn

查看更多

关注者
0
被浏览
119
1 个回答
myIvan
myIvan 认证专家 2019-08-17
各种技术交流学习,欢迎来扰。

我这里 https://a.sd.cn 可以访问啊

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览