第一种:加-(减号)表示注释
<Directory"/application/apache2.2.26/htdocs">
Options -IndexesFollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
第二种直接去掉:
<Directory"/var/blog/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
第三种设置none:
<Directory"/var/www/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
时间: 2024-11-06 22:39:53