From 27aa6dc7d69ce50932b4c07e071ce0cb608dfb1b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Feb 2022 20:58:51 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c9a86e3..0a76265 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,13 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - + # Path to source alias __FINALPATH__/; index index.php index.html index.htm; - try_files $uri $uri/ index.php; + try_files $uri $uri/ __PATH__/yourls-loader.php$is_args$args; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;