apache2 的文件类型权限配置 /etc/apache2/sites-available/default 文件里。<FilesMatch "[^\.(gif|jpg|jpeg|png|bmp|swf|wav)]$">Order allow,denyDeny from all</FilesMatch></VirtualHost>