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;