2017-01-22 54 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

我刪除了所有瀏覽器的歷史,現在開始工作。 :)