Apache: return 404 instead of 403 w/ mod_access

apache-2.2

I like the syntax of the Order deny,allow approach to restricting access and I'm trying to avoid mod_rewrite: is there a way I can make unathorized IPs just see a 404 instead of a 403, which is HTTP code for "THERE'S TOP SECRET STUFF HERE STOP LOOKING"?

Thanks.

Best Answer

The 403 page is dependant on Apache serving that html.. you can override it for any <Location> or <Directory> directive simply by using the ErrorDocument directive:

<Directory /web/docs>
ErrorDocument 403 /404-page.html
</Directory> 

Etc..http://httpd.apache.org/docs/1.3/mod/core.html#errordocument