diff --git a/docker/haproxy/haproxy-behind.conf b/docker/haproxy/haproxy-behind.conf index 79543d7..141be4f 100644 --- a/docker/haproxy/haproxy-behind.conf +++ b/docker/haproxy/haproxy-behind.conf @@ -52,7 +52,7 @@ frontend website acl is_root path -i / http-request deny if is_pad is_root - use_backend be_api if { path_end -i favicon.ico } + use_backend be_api if { path_end -i favicon.ico } or { path_end -i favicon } use_backend be_nextcloud if is_nextcloud use_backend be_moodle if is_moodle @@ -72,7 +72,7 @@ frontend website backend be_api mode http - http-request set-path /img/favicon.ico if { path_end -i favicon.ico } + http-request set-path /img/favicon.ico if { path_end -i favicon.ico } or { path_end -i favicon } acl existing-x-forwarded-host req.hdr(X-Forwarded-Host) -m found acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host diff --git a/docker/haproxy/haproxy.conf b/docker/haproxy/haproxy.conf index cd1a2ea..4e9334a 100644 --- a/docker/haproxy/haproxy.conf +++ b/docker/haproxy/haproxy.conf @@ -52,7 +52,7 @@ frontend website acl is_root path -i / http-request deny if is_pad is_root - use_backend be_api if { path_end -i favicon.ico } + use_backend be_api if { path_end -i favicon.ico } or { path_end -i favicon } use_backend letsencrypt if { path_beg /.well-known/acme-challenge/ } use_backend be_api if is_nextcloud { path_beg /avatar/ } @@ -77,7 +77,7 @@ backend letsencrypt backend be_api mode http - http-request set-path /img/favicon.ico if { path_end -i favicon.ico } + http-request set-path /img/favicon.ico if { path_end -i favicon.ico } or { path_end -i favicon } acl existing-x-forwarded-host req.hdr(X-Forwarded-Host) -m found acl existing-x-forwarded-proto req.hdr(X-Forwarded-Proto) -m found http-request add-header X-Forwarded-Host %[req.hdr(Host)] unless existing-x-forwarded-host