鍍金池/ 問(wèn)答/Linux/ 阿里云ubuntu apache配置好https后怎么http與https指向目

阿里云ubuntu apache配置好https后怎么http與https指向目錄不一致

如題。域名備案了,服務(wù)器也配置了域名路徑

回答
編輯回答
不舍棄
<VirtualHost *:443>
    SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/214399318900951.pem
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/test
        ServerName myserveName
        #<Directory />
         # Options FollowSymLinks
          #AllowOverride All
#       </Directory>
#       <Directory /var/www/>
#       Options FollowSymLinks MultiViews
#       AllowOverride None
#       Order allow,deny
#       allow from all
        # This directive allows us to have apache2's default start page
        # in /apache2-default/, but still have / go to the right place
        #RedirectMatch ^/$ /apache2-default/
#       </Directory>
</VirtualHost>

直接報(bào)錯(cuò)。怎么辦

2017年8月2日 01:31