If you only want to "suppress the access denial error messages", why not use "ErrorDocument"?
Basically, in the event of a problem or error, Apache can be configured to do one of four things, 1. output a simple hardcoded error message 2. output a customized message 3. internally redirect to a local URL-path to handle the problem/error 4. redirect to an external URL to handle the problem/error See the link of the manual http://httpd.apache.org/docs/2.2/mod/core.html#errordocument t On Mon, Mar 24, 2014 at 4:53 PM, James Moe <ji...@sohnen-moe.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > Our site denies access by a IP address range. A couple days ago I > had a load of accesses by one of the addresses in that network, > 64.37.231.140. Mostly, it works as expected. > I am confused by some of the errors recorded, a sample is shown > below. The first line is expected: Yay! it was denied access! > The next two lines indicate otherwise. Is a path's existence checked > before accessibility? > > There are about 1150 of the configuration lines, and about 20 of the > no-file lines. > > [Sun Mar 16 10:26:19 2014] [error] [client 64.37.231.140] client > denied by server configuration: /var/www/html/axis > [Sun Mar 16 10:26:19 2014] [error] [client 64.37.231.140] File does > not exist: /var/www/icons/axis > [Sun Mar 16 10:26:19 2014] [error] [client 64.37.231.140] File does > not exist: /var/www/icons/axis > > Is there a way to suppress the access denial error messages? > > > - ----[ .htaccess ]---- > # > Options +ExecCGI +FollowSymLinks > # > Order allow,deny > Allow from all > > ... a lot of redirects ... > > # Deny (a range of) IP addresses > # > Order allow,deny > Allow from all > Deny from 64.37.231 > # > # blah blah blah ... > > > - -- > James Moe > moe dot james at sohnen-moe dot com > 520.743.3936 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlMwxZIACgkQzTcr8Prq0ZPWSQCfTgBmetRmHpW75uZj+14+nHEF > XAoAoI2QWVYFkH4IowmcmBuPSrJMj/VN > =2IWR > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > -- Tianyin XU, http://cseweb.ucsd.edu/~tixu/