Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-04-15 16:20:09 +0300
committerRobin Appelman <robin@icewind.nl>2021-04-15 16:20:09 +0300
commit26782228261b3db6dc1098990a25d01519767a43 (patch)
tree1388459bceb33292913649cbf34ba94a6d91849a
parent0a3465200b857edaf93c9bafd263854e819ac91e (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.sample2
-rw-r--r--admin_manual/installation/nginx-subdir.conf.sample2
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`.