2017-01-22 96 views
0

的文档根目录我去了/etc/apache2/sites-available/default-ssl,并在访问ssl时更新了文档根目录。但是,由于某些原因,它仍然指向/var/www。我已使用sudo service apache2 reloadsudo service apache2 restart重新加载并重新启动apache2服务器,但这些更改仍未反映。是否有其他地方需要更改以使https://localhost/指向/home/student/public_html无法更改https:// localhost/

默认SSL的前几行:

<IfModule mod_ssl.c> 
<VirtualHost _default_:443> 
    ServerAdmin [email protected] 
    ServerName localhost 

    DocumentRoot /home/student/public_html 
    <Directory /> 
     Options FollowSymLinks 
     AllowOverride None 
    </Directory> 
    <Directory /home/student/public_html/> 
     Options Indexes FollowSymLinks MultiViews 
     AllowOverride None 
     Order allow,deny 
     allow from all 
    </Directory> 

违约的前几行:

<VirtualHost *:80> 
    ServerAdmin [email protected] 

    DocumentRoot /home/student/public_html 
    <Directory /> 
     Options FollowSymLinks 
     AllowOverride None 
    </Directory> 
    <Directory /home/student/public_html/> 
     Options Indexes FollowSymLinks MultiViews 
     AllowOverride All 
     Order allow,deny 
     allow from all 
    </Directory> 

    Redirect "/" "https://localhost/" 

回答

0

我删除了所有浏览器的历史,现在开始工作。 :)