在百度和优快云上找了一大圈,都说的乱七八糟,抄来抄去的。在askUbuntu.com上终于找到了解决方案:
1. Edit /etc/apache2/apache2.conf
to show:
<Directory /media/werner/EDrive/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
2. Edit /etc/apache2/sites-available/000-default.conf
to show:
DocumentRoot /media/werner/EDriver/www/html
<Direcroty />
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
3. Edit /etc/apache2/sites-available/default-ssl.conf
to show:
DocumentRoot /media/werner/EDrive/www/html
4. sudo chmod -R root:root /var
sudo chown -R www-data:www-data /media
5. Restart apache2:
sudo service apache2 restart