diff --git a/server/conf/nginx_vhost.conf.master b/server/conf/nginx_vhost.conf.master
index 807eeb17425462d8485b714392c50e797849f964..97862c5b5a4ab03e108ec118ab572f090f1a50ee 100644
--- a/server/conf/nginx_vhost.conf.master
+++ b/server/conf/nginx_vhost.conf.master
@@ -112,7 +112,7 @@ server {
         access_log /var/log/ispconfig/httpd/<tmpl_var name='domain'>/access.log combined;
 
         ## Disable .htaccess and other hidden files
-        location ~ /\. {
+        location ~ /\.(?!well-known/acme-challenge/) {
             deny all;
             access_log off;
             log_not_found off;