Dot directory 404 for .well-known

Running a Apache 2.4 on opensuse

Try to let install certs. Getting Error: The client lacks sufficient authorization

There is a 404 because the dot in .well-known.

If i remove the dot then a file in /well-known/acme-challenge/test.html is shown.

So, what is to do, that apache does not rise 404

There’s most likely some rule in one of your apache configuration files (or .htaccess) denying access to dot files or directories. Some people consider this best-practice to prevent accidentally leaking things like .git or .svn directories which contain all your source code.

This could be done in any number of ways. Look out for something like:

<FilesMatch "^\.">

or

<DirectoryMatch "^\.|\/\.">

or

RewriteRule (^\.|/\.) - [F]

There’s probably plenty of other ways this could be done.

2 Likes

Thanks a lot!

It was a RewriteRule in a .htaccess

now it works!