Skip to content

Commit 87c0dde

Browse files
author
Marius Burkard
committed
- fixed LE verification not working on nginx aliasdomains using rewriting, fixes #4618, #4746
1 parent a24cf77 commit 87c0dde

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

server/conf/nginx_vhost.conf.master

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,19 @@ server {
313313
}
314314
</tmpl_loop>
315315
</tmpl_if>
316+
## no redirect for acme
317+
location ^~ /.well-known/acme-challenge/ {
318+
access_log off;
319+
log_not_found off;
320+
root /usr/local/ispconfig/interface/acme/;
321+
autoindex off;
322+
index index.html;
323+
try_files $uri $uri/ =404;
324+
}
316325
<tmpl_if name='use_rewrite'>
317-
rewrite ^ <tmpl_var name='rewrite_target'>$request_uri? <tmpl_var name='rewrite_type'>;
326+
location / {
327+
rewrite ^ <tmpl_var name='rewrite_target'>$request_uri? <tmpl_var name='rewrite_type'>;
328+
}
318329
</tmpl_if>
319330
<tmpl_if name='use_proxy'>
320331
location / {

0 commit comments

Comments
 (0)