Bonjour,
je débute avec dolibarr, aprés avoir configurer mon ngnix en suivant les totriaux et les forum,
server {
listen [::]:80;
listen 80;
server_name mon_domaine; # Check this
root monpath/htdocs; # Check this
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ [^/].php(/|$) {
fastcgi_split_path_info ^(.+?.php)(/.)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_param HTTP_PROXY « »;
root /var/www/html/dolibarr/dolibarr/htdocs;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# Dolibarr Rest API path support
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
}
location /api {
if ( !-e $request_filename) {
rewrite ^. /api/index.php last;
}
}
}
quand requête l’@ monadresse/api/index.php/explorer j’obtient un XML avec un code 404
et un debug source Routes.php:380 at route stage
Any help please ?
Merci d’avance