编辑httpd.conf文件,添加以下代码中的1至3行,查找到“ CustomLog logs/access_log combined”在其后添加“env=!NOFILES”即可。完整代码如下: Apache设置 "/.(ico|gif|jpg|png|swf)"> SetEnv NOFILES 1 CustomLog logs/access_log combined env=!NOFILES 转载于:https://www.cnblogs.com/peter9/archive/2011/05/17/2362169.html