Problem serving a folder with a dot prefix over the web: /.well-known/


I am having problems accessing this URL through a browser: can see the folder is in the correct place on the server and if I remove the dot prefix, I can access the file, so I can see the problem is serving a folder with a dot prefix over the web.Where/how do I adjust the server config to allow this folder? Any pointers would be greatly appreciated.

With regards, Tim.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

There’s most likely some rule in one of your apache configuration files or the .htaccess denying access to dot files or directories.

The rules that could be stopping the access might look something like this:

<FilesMatch "^\.">


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


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

Feel free to share your Apache virtual host and .htaccess file here if you wish.

Regards, Bobby