diff --git a/server/conf/nginx_vhost.conf.master b/server/conf/nginx_vhost.conf.master
index 67f1ee0ed452a37b373be1706d070bfa1037c31e..f057088ac64a4adf580db10f18bf3b2187a68c8f 100644
--- a/server/conf/nginx_vhost.conf.master
+++ b/server/conf/nginx_vhost.conf.master
@@ -263,8 +263,8 @@ server {
         }
 </tmpl_if>
 
-location /\.well-known/acme-challenge {
-	   root /usr/local/ispconfig/interface/acme/.well-known/acme-challenge;
+location ~ /\.well-known/acme-challenge/ {
+	   root /usr/local/ispconfig/interface/acme/;
 	   index index.html index.htm;
 	   try_files $uri =404;
 }
@@ -301,8 +301,8 @@ server {
         
         server_name <tmpl_var name='rewrite_domain'>;
 
-location /\.well-known/acme-challenge {
-	   root /usr/local/ispconfig/interface/acme-challenge;
+location ~ /\.well-known/acme-challenge/ {
+	   root /usr/local/ispconfig/interface/acme/;
 	   index index.html index.htm;
 	   try_files $uri =404;
 }