GrepBoard/Manuals
605 manuals ·

Apache AH00113: cannot use a full URL in a 401 ErrorDocument directive

·Tested on Apache httpd 2.4.71 (Docker) · 2026-11·Test scope ↓·3 steps

Apache can report Syntax OK while ignoring a full URL in ErrorDocument 401. Use a local URL path and check the notice from the same configuration test.

output
[Mon Nov 23 02:24:31.292457 2026] [core:notice] [pid 9:tid 9] AH00113: /repro/errors.conf:2 cannot use a full URL in a 401 ErrorDocument directive --- ignoring!Syntax OK

Apache ignored the 401 error-page directive and still reported Syntax OK. An https:// URL counts as a full URL even when it points back to the same virtual host.

[1] Follow the filename and line number in the notice. In the test, line 1 of /repro/errors.conf set the log level and line 2 supplied the error page.

/repro/errors.conf
LogLevel noticeErrorDocument 401 https://example.com/errors/401.html

The following command also enabled notice-level logging at startup. It produced the opening output and exited with status 0. An automated check that only reads the exit status misses the ignored setting.

console
$ httpd -t -e notice -c 'ServerName localhost' -c 'Include /repro/errors.conf'

[2] Replace the full URL with a local URL path starting with /. Use the path a client would request on the site. A filesystem pathname starting with a slash would also be interpreted as a URL path.

/repro/errors.conf
LogLevel noticeErrorDocument 401 /errors/401.html

Apache's remote error-document mechanism sends a redirect. Substituting a redirect for a 401 would deprive the client of the status it needs for authentication. For a 401 paired with a full URL the parser logs the notice and skips storing that entry. The notice records a configuration decision before any request to the error page. ErrorDocument directive · Apache 2.4.71 parser

[3] Repeat the same configuration check after changing just the address. It again exited with status 0. This time the entire check output was one line.

output
Syntax OK

Before deployment, check that an anonymous request to /errors/401.html reaches the intended page on that virtual host. Save the previous directive, check the configuration and apply it. Request a protected URL anonymously and inspect the 401 status, the WWW-Authenticate header and the custom body. The configuration check alone cannot establish that the file exists or that Apache serves it. If the response differs from the intended result, restore the previous directive, check and reapply it. For a repeated error-page request with AH00124, see the internal redirect limit.

Analyze your Apache log in the browser ↗ — nothing is uploaded.

#apache#ah00113#errordocument#http-401