I can't get a custom error document to work for 400 Bad Request. It's a CentOS LAMP server.
ErrorDocument 400 /badrdoc.html
I've tried using the above in:
- Apache http.conf
- Apache httpd-vhosts.conf (in each vhost)
- .htaccess in the root htdocs of the site
None of them are working. Apache is serving its default 400 Bad Request page.
Can anyone shed any light on this?
Edit: forgot to mention, I have restarted Apache after changes.