【发布时间】:2019-03-27 07:53:59
【问题描述】:
这个错误在我的 c 刑事服务器中一次又一次地重复,我的 .htaccess 代码是这样的,下面的代码我在 cpanel 中添加了我的错误
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<IfModule !mod_authz_host.c>
Satisfy any
</IfModule>
RewriteEngine on
AddDefaultCharset Off
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
错误是:
[Sun Oct 21 07:51:15.337451 2018] [autoindex:error] [pid 2900243:tid 139861235275520] [client 207.46.13.109:6818] AH01276: Cannot serve directory /home/lkxsvek9g963/public_html/ico/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sat Oct 20 12:41:53.883794 2018] [autoindex:error] [pid 2710513:tid 139861465175808] [client 94.130.216.183:53586] AH01276: Cannot serve directory /home/lkxsvek9g963/public_html/ico/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
【问题讨论】:
标签: php .htaccess server cpanel