我有一个安装了Apache2的Debian Web服务器,需要在一个目录中设置DirectoryIndex到.html文件(正是这个名字 - .html).但是当我尝试从浏览器打开页面时,它会发送403错误.我已经更改了apache2.conf(设置为允许.ht文件),我将.htacess文件放在目录中并设置在其中:
DirectoryIndex .html index.php index.html
AllowOverride All
Order Deny,Allow
Allow from all
Run Code Online (Sandbox Code Playgroud)
但它仍然无法正常显示403错误.我做错了什么,忘了做什么?