Site Loader

在进入Nextcloud后台页面中的【概览】时,安全及设置警告显示“ 您的网页服务器未正确设置以解析 …… ”,这里有两个提示,“/.well-known/caldav”和 “/.well-known/carddav” 。

安全及设置警告

这是由于Apache2未开启rewrite功能,或者虚拟机目录配置文件中未添加“AllowOverride All”参数,使得Nextcloud无法使用网站根目录下.htaccess文件参数所致。

输入如下命令开启rewrite功能,并重启Apache2服务。

a2enmod rewrite
service apache2 restart

打开/etc/apache2/sites-available下对应的虚拟目录配置文件,本例为000-default.conf,查看是否存在 “AllowOverride All” 参数,如下图所示。

AllowOverride All

刷新【概览】页面,警告提示消失,问题解决。