diff options
author | Robin Appelman <robin@icewind.nl> | 2021-04-15 16:20:09 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-04-15 16:20:09 +0300 |
commit | 26782228261b3db6dc1098990a25d01519767a43 (patch) | |
tree | 1388459bceb33292913649cbf34ba94a6d91849a | |
parent | 0a3465200b857edaf93c9bafd263854e819ac91e (diff) |
fix nginx well-known redirects when behind another reverse proxynginx-relative-well-known-redirect
if nginx is behind another reverse proxy that handles the ssl termination it currently returns the wrong (non-https) redirect for well-known urls
-rw-r--r-- | admin_manual/installation/nginx-root.conf.sample | 2 | ||||
-rw-r--r-- | admin_manual/installation/nginx-subdir.conf.sample | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/admin_manual/installation/nginx-root.conf.sample b/admin_manual/installation/nginx-root.conf.sample index e61990d0d..a12942824 100644 --- a/admin_manual/installation/nginx-root.conf.sample +++ b/admin_manual/installation/nginx-root.conf.sample @@ -91,6 +91,8 @@ server { # `location ~ /(\.|autotest|...)` which would otherwise handle requests # for `/.well-known`. location ^~ /.well-known { + absolute_redirect off; + # The rules in this block are an adaptation of the rules # in `.htaccess` that concern `/.well-known`. diff --git a/admin_manual/installation/nginx-subdir.conf.sample b/admin_manual/installation/nginx-subdir.conf.sample index ad1df1d30..f5d1c6efd 100644 --- a/admin_manual/installation/nginx-subdir.conf.sample +++ b/admin_manual/installation/nginx-subdir.conf.sample @@ -42,6 +42,8 @@ server { } location ^~ /.well-known { + absolute_redirect off; + # The rules in this block are an adaptation of the rules # in the Nextcloud `.htaccess` that concern `/.well-known`. |