diff --git a/server/conf/nginx_vhost.conf.master b/server/conf/nginx_vhost.conf.master
index 8cfdbcf8f6b9ba00dd8c2d42504ed46c732e99a7..596662d8a9c2dc37bf9f41eec1c1f2418ac272d6 100644
--- a/server/conf/nginx_vhost.conf.master
+++ b/server/conf/nginx_vhost.conf.master
@@ -313,8 +313,19 @@ server {
}
+ ## no redirect for acme
+ location ^~ /.well-known/acme-challenge/ {
+ access_log off;
+ log_not_found off;
+ root /usr/local/ispconfig/interface/acme/;
+ autoindex off;
+ index index.html;
+ try_files $uri $uri/ =404;
+ }
- rewrite ^ $request_uri? ;
+ location / {
+ rewrite ^ $request_uri? ;
+ }
location / {