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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 057f32 in the box below so that we can be sure you are a human.