From ce982e3d7a000695105a94dc73e0c635835b83f3 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 1 Mar 2021 12:57:39 +0100 Subject: [PATCH] fix ldap admin page --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index e9f864a..781fb77 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -93,6 +93,10 @@ location ^~ __PATH__/ { # then Nginx will encounter an infinite rewriting loop when it prepends # `/nextcloud/index.php` to the URI, resulting in a HTTP 500 error response. location ~ \.php(?:$|/) { + # Required for legacy support + # https://github.com/nextcloud/documentation/pull/2197#issuecomment-721432337 + # This line fix the ldap admin page + rewrite ^__PATH__/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) __PATH__/index.php$request_uri; fastcgi_split_path_info ^(.+?\.php)(/.*)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404;