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;