Apache (Web Server) - Resolve "cannot use a full URL in ErrorDocument directive" (401 404 500)

by
Jeremy Canfield |
Updated: September 28 2021
| Apache (Web Server) articles
Let's say the following is being returned when attempting to start an Apache web server instance.
cannot use a full URL in a 401 ErrorDocument directive — ignoring!
This suggests that a full URL is defined in the ErrorDocument directive in the web servers configuration file (e.g. httpd.conf), something like this.
ErrorDocument 401 http://www.example.com/401.html
Instead, the path to the file on the Apache web server must be used.
ErrorDocument 401 /var/www/html/401.html
Did you find this article helpful?
If so, consider buying me a coffee over at