Skip to content
Snippets Groups Projects
Commit 87c0dde9 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed LE verification not working on nginx aliasdomains using rewriting, fixes #4618, #4746

parent a24cf771
No related branches found
No related tags found
No related merge requests found
...@@ -313,8 +313,19 @@ server { ...@@ -313,8 +313,19 @@ server {
} }
</tmpl_loop> </tmpl_loop>
</tmpl_if> </tmpl_if>
## 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;
}
<tmpl_if name='use_rewrite'> <tmpl_if name='use_rewrite'>
rewrite ^ <tmpl_var name='rewrite_target'>$request_uri? <tmpl_var name='rewrite_type'>; location / {
rewrite ^ <tmpl_var name='rewrite_target'>$request_uri? <tmpl_var name='rewrite_type'>;
}
</tmpl_if> </tmpl_if>
<tmpl_if name='use_proxy'> <tmpl_if name='use_proxy'>
location / { location / {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment