File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,16 @@ server {
6969 <tmpl_if name='exclude_own_hostname'>if ($http_host != "<tmpl_var name='exclude_own_hostname'>") { </tmpl_if>rewrite ^<tmpl_var name='rewrite_exclude'>(.*)$ <tmpl_var name='rewrite_target'>$2 <tmpl_var name='rewrite_type'>;<tmpl_if name='exclude_own_hostname'> }</tmpl_if>
7070</tmpl_if>
7171<tmpl_if name='use_proxy'>
72+ ## no proxy for acme-challenge
73+ location ^~ /.well-known/acme-challenge/ {
74+ access_log off;
75+ log_not_found off;
76+ root /usr/local/ispconfig/interface/acme/;
77+ autoindex off;
78+ index index.html;
79+ try_files $uri $uri/ =404;
80+ }
81+
7282 location / {
7383 proxy_pass <tmpl_var name='rewrite_target'>;
7484 <tmpl_if name='rewrite_subdir'>rewrite ^/<tmpl_var name='rewrite_subdir'>(.*) /$1;</tmpl_if>
You can’t perform that action at this time.
0 commit comments