From 81c8bfe16b311d5bf4635947fa02dfb65aea7f91 Mon Sep 17 00:00:00 2001 From: June Date: Mon, 22 Jan 2024 22:41:12 +0100 Subject: [PATCH] Actually keep using $uri for DokuWiki stuff since otherwise it breaks To be investigated if the $uri issue also applies for try_files. --- .../chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf index fd4e10c..ccdd224 100644 --- a/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf +++ b/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf @@ -46,7 +46,7 @@ server { expires 365d; } - location / { try_files $request_uri $request_uri/ @dokuwiki; } + location / { try_files $uri $uri/ @dokuwiki; } location @dokuwiki { # rewrites "doku.php/" out of the URLs if you set the userwrite setting to .htaccess in dokuwiki config page @@ -57,7 +57,7 @@ server { } location ~ \.php$ { - try_files $request_uri $request_uri/ /doku.php; + try_files $uri $uri/ /doku.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param REDIRECT_STATUS 200;