install kimai2 into subdirectory serve via nginx and php-fpm

Hi, here the config section of nginx

location /kimai2 {
index index.php;
alias /srv/http/kimai2/public;
try_files $uri $uri/ @kimai2;
location ~ .php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location @kimai2 {
rewrite /kimai2/(.*)$ /kimai2/index.php?/$1 last;
}
location /build {
alias /srv/http/kimai2/public/build;
}

Have fun!