You may be experiencing a mod_rewrite
error for the server. Edit your htaccess file like the example below. For more detailed information: Apache Indexes restrict download file types
<Directory "/var/www/data01">
Options Indexes FollowSymLinks
IndexOptions ShowForbidden
Require all granted
AllowOverride all
RewriteEngine On
RewriteRule !(.txt$|^$) - [NS,F]
</Directory>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…