Dot directory 404 for .well-known


#1

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


#2

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.


#3

Thanks a lot!

It was a RewriteRule in a .htaccess

now it works!