0
のドキュメントルートを変更できません/etc/apache2/sites-available/default-ssl
に行き、sslにアクセスしているときにドキュメントルートを更新しました。しかし、なんらかの理由でまだ/var/www
を指しています。私はsudo service apache2 reload
とsudo service apache2 restart
を使ってapache2サーバをリロードして再起動しましたが、変更はまだ反映されていません。 https://localhost/
が/home/student/public_html
を指すように変更する必要がある他の場所はありますか?デフォルト-SSLのhttps:// localhost/
最初の数行:デフォルトの
<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/"