@
wjself 我找到了,但是试了下还是不行
还有你说的 sites-enable 其实和我说的是一样的,只是我是在 sites-available 里已经复制了一份 conf ,然后利用 a2ensite 命令,后面他会在你说的 sites_enable 里出来的,然后我现在浏览器出来的问题还是 403,log 的错误还是 AH01630 ,
我具体在 sites_enable 里 写的代码如下:
ServerName william
ServerAdmin webmaster@william
ServerAlias www.william
DocumentRoot /wwwroot/cms/index.html
然后在 apache2.conf 文件里的改动代码如下:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /us/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
加了一段下面的
<Directory /wwwroot/cms/index.html>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
host 文件也改了
127.0.0.1 william
谢谢