1. The problem I’m having:
I have multiple apps and I only have 1 DNS. To separate the apps, I add prefix in the URI, e.g. www.domain.test/app-1, www.domain.test/app-2, and so on. So I preferred to use handle or handle_path directives in my configurations. The Problem: Only my laravel application always ends-up to 404 Not Found.
2. Error messages and/or full log output:

3. Caddy version:
v2.7.4
4. How I installed and ran Caddy:
a. System environment:
OS: Ubuntu 22.04.3 LTS 22.04 Jammy
Laravel: v9
b. My complete Caddy config:
sub.domain.test {
encode zstd gzip
import static
import security
handle_path /alias-laravel-app* {
root * /var/www/html/laravel-app/public
php_fastcgi unix//var/run/php/php8.1-fpm.sock
}
root * /var/www/html/
php_fastcgi unix//var/run/php/php7.4-fpm.sock
file_server
}