Use the same nginx instance for nextcloud and another php app

Hi,
I’d like to use my nginx server to serve nextcloud and another php app.
I followed the configuration listed as “Nextcloud in a subdir of nginx” on the manual (https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html) and nextcloud works perfectly under the url https : //my-sever/nextcloud
But if I try to access my other php app with an url like this https : //my-server/myapp/index.php script are downloaded instead executed.
If I disable nextcloud site my app works ok.
Is there any configuration under nextcloud that does not allow to use another php app on the same server ?

Regards

Like this, you probably only enabled php for the nextcloud-subfolder, you have to do the same for your app. Untested (in doubt, check the nginx configuration):

location ^~ /yourapp {
  location ~ ^/yourapp/.+\.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_pass php-handler;
    fastcgi_intercept_errors on;
    .... and other parameters you want to set
 }
}