Commit b0b511a5 authored by Marius Burkard's avatar Marius Burkard
Browse files

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 !1604
parents 9c03da04 23112c3e
Pipeline #11826 passed with stage
in 7 seconds
......@@ -69,6 +69,16 @@ server {
<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>
<tmpl_if name='use_proxy'>
## no proxy for acme-challenge
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;
location / {
proxy_pass <tmpl_var name='rewrite_target'>;
<tmpl_if name='rewrite_subdir'>rewrite ^/<tmpl_var name='rewrite_subdir'>(.*) /$1;</tmpl_if>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment