I have a linux distro with Apache
The folder looks like..
I want, when a 404 is encountered in any domain,
that the Err/error404.html to be pulled into the page.
I tried with the following, and it works by looking for the error404.html file within the current website directory
#ErrorDocument 404 /error404.html
But, i dont want to put a custom 404 page in each website folder, i want to use one file, for all folders.
So I tried to use the following:
ErrorDocument 404 /../Err/error404.html
And it failed.
When I enter the address www.websiteA.com/test_errorwebsite
I get nothing.
I'd like it to pull the www/Err/error404.html
the results are:
The requested URL /ghjkl was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.