solved: missing PHP settings in www.conf - works just fine with my subfolders too. Here example configs:
to the nginx conf file:
location ~ .php$ {
include fastcgi_params;
fastcgi_pass phpfpm:9003; # watch for the portnumber
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
in the PHP pools.conf a new pool:
[domain-worker]
user = www-data
group = www-data
pm = dynamic
pm.max_children = 50
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 15
listen = [::]:9003
access.log = /proc/self/fd/2
clear_env = no
catch_workers_output = yes
php_admin_value[memory_limit] = 256M
php_admin_value[disable_functions] = show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkf>