Nginx api error 404

Hi guys, I am using version 17, when i open myhost.mydomain.xx/…/api/index.php/explorer or even myhost.mydomain.xx/…/api/index.php , it showing error 404

but i also follow Module Web Services API REST (developer) - Dolibarr ERP CRM Wiki to do the set up for my nginx (Dolibarr Rest API path support)

location ~ [^/]\.php(/|$) {
    fastcgi_intercept_errors on;
    fastcgi_index   index.php;
    include         fastcgi_params;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param   SCRIPT_NAME $fastcgi_script_name;
    # Dolibarr Rest API path support
    fastcgi_param   PATH_INFO       $fastcgi_path_info;
    fastcgi_param   PATH_TRANSLATED $document_root$fastcgi_script_name;
    fastcgi_pass php-fpm;
}

any part i miss out?

No but I got the same problem with 18.0.4
I cant configure the API module because it downloads the .php file it should open.

On API only Login is available, but login not working

I think that when it downloads the .php file it means that it is not executing the .php file.