I have a virtual server running apache2 on debian. I would like to create a default 404 error message in the apache2.conf for all my websites.
ErrorDocument 404 "/var/www/site/public/404.html"
The error I get after restarting apache is:
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It works if I enter the URL although I dont want the page to redirect only use a default 404.html page.