PDA

View Full Version : How do you change the HTTP 403 error document?




maclover001
May 15, 2009, 12:16 AM
You can change the 404 Not Found document in Server Admin for different sites, but how do you change 403 Forbidden?

Thanks



mathcolo
May 19, 2009, 10:44 PM
Unfortunately, you might have to dig into Apache configuration to change the ErrorDocument directive. If you want to do it on a per-directory basis, put a .htaccess file in a directory and use ErrorDocument (http://httpd.apache.org/docs/2.0/mod/core.html#errordocument) also.

maclover001
May 20, 2009, 12:05 AM
Unfortunately, you might have to dig into Apache configuration to change the ErrorDocument directive. If you want to do it on a per-directory basis, put a .htaccess file in a directory and use ErrorDocument (http://httpd.apache.org/docs/2.0/mod/core.html#errordocument) also.

Thanks. It seems like OS X has at least 5 different "httpd.conf" files left over from old Apache versions (?), so it was hard to find what exactly to change.