1,登陆SSH 修改网站apache下的配置文件
文件路径如下:/www/wdlinux/apache/conf/vhost/网站对应名称.conf下的(例: x.rueur.com.conf)配置文件
查看文件内容: cat x.rueur.com.conf
2,先按I,保存的时候先按:qw. 采用VI 命令去修改
修改前:
错误的那段
修改后:
<Directory /www/web/xrueur>
Options -Indexes +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
3,重启web服务
Comments