Apache AH00037: Symbolic link not allowed or link target not accessible
Apache AH00037 returns a 403 when a symlink check fails. Compare requests for the file and the link, then check the directory Options and target path.
[Sat Nov 21 23:26:02.975113 2026] [core:error] [pid 8:tid 20] [client 172.17.0.1:48474] AH00037: Symbolic link not allowed or link target not accessible: /usr/local/apache2/htdocs/lab-link.txtApache could not follow a symbolic link while resolving the request path. In this test, lab-link.txt at the end of the log entry is the link Apache checked. Inspect both the effective options where the link sits and the path it points to.
[1] Send a GET for the target file and another for the link on the same virtual host. Replace example.com with the host that received the request. Compare the two URLs only if the target already has a public URL. See where Apache writes its logs to locate the error log.
$ curl -sS -o /dev/null -w '%{http_code}\n' 'https://example.com/lab-target.txt'$ curl -sS -o /dev/null -w '%{http_code}\n' 'https://example.com/lab-link.txt'The test document root in the official image held a readable lab-target.txt and a symlink to it named lab-link.txt. With Options None, the file returned 200 and the link returned 403. The AH00037 line above came from docker logs after the failing GET. If only the request through the link fails, start with the options at the link's location.
[2] Trace the logged path on the filesystem where Apache runs. For a container, use the path inside the container. readlink shows the target recorded in the link. namei -l follows it and shows ownership and permissions for each path component. Resolve relative targets from the directory containing the link.
$ readlink /usr/local/apache2/htdocs/lab-link.txt$ namei -l /usr/local/apache2/htdocs/lab-link.txtIf the target is missing or outside the mount, fix the deployment's link or mount. Apache's request worker needs search permission on the directories leading to the target and read permission on the file. Check ownership, group membership and permissions for the worker's account. If the 403 comes with AH01630, check Require access rules.
[3] Read Options in the <Directory> sections and .htaccess files that apply where the link sits. Options None disables link following at that path. With SymLinksIfOwnerMatch, the link and its target must have the same owner UID. An Options list without prefixes replaces the inherited list, so a child Options None overrides a parent's FollowSymLinks. Apache Options documentation
[4] Fix the deployment or the configuration for the file you intend to publish. Where policy blocks symlinks, deploy a regular file. If a link is needed, save a copy of the relevant configuration file and enable link following only in a directory where administrators control both the links and their targets. This shows the replacement for Options None in the test document root. If a directory already needs other options, check the current list before adding FollowSymLinks.
<Directory "/usr/local/apache2/htdocs"> Options FollowSymLinks</Directory>The setting applies to other links in the directory too. Check who can create links there and whether their targets are intended for publication before choosing the scope.
[5] Check the syntax, apply the change and repeat the two GETs. On an installation managed with apachectl, use the command below. If the change exposes another file or requests fail, restore the saved configuration and repeat the check and reload. Apache httpd command options
# apachectl -t && apachectl -k gracefulThe test started a fresh container with the changed setting. Both GETs returned 200 and neither logged a new AH00037. The path check uses the same message when Apache disallows the link or cannot get information about its target. Apache 2.4.71 request path source
Analyze your Apache log in the browser ↗ — nothing is uploaded.
Check it with the HTTP status codes tool ↗ — calculated in your browser.