我的多共享托管服务器上运行着10个域网站,但是当我尝试访问主网站时,它显示以下错误
禁止
您无权访问此服务器上的/wp-content/deleteme.389dafd758b849f794dc042743aaa82e.php。 服务器无法读取htaccess文件,拒绝安全访问
此外,尝试使用ErrorDocument处理请求时遇到403禁止错误。
访问此链接以查看错误http://www.aaratechinc.com/
答案 0 :(得分:0)
打开/etc/apache2/apache2.conf或/etc/apache2/sites-available/000-default.conf 寻找显示以下内容的行
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
并将其更改为
<Directory /var/www>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
然后输入命令
sudo a2enmod rewrite
然后重新启动apache服务器
sudo service apache2 restart
对于CentOS