From 8f9de329e3b043598243a9b5d7a1277ae27faecd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 1 Feb 2021 16:30:27 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index bff72bf..c465582 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { client_max_body_size 100M; client_body_buffer_size 128k; - #try_files $uri $uri/ index.php; + try_files $uri $uri/ @__NAME__; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; @@ -31,6 +31,10 @@ location __PATH__/ { include conf.d/yunohost_panel.conf.inc; } +location @__NAME__ { + rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last; +} + location __PATH__/api { if (!-e $request_filename) { rewrite ^(.*)$ __PATH__/api/index.php last; break;