Skip to content

Commit b0b511a

Browse files
author
Marius Burkard
committed
Merge branch '4618-allow-acme-with-proxy-redirect' into 'develop'
nginx: Added ACME redirect to main domain based on alias domain fix Closes #4618 See merge request ispconfig/ispconfig3!1604
2 parents 9c03da0 + 23112c3 commit b0b511a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/conf/nginx_vhost.conf.master

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)