You are not logged in.
Pages: 1
Hello! I have problem with api.
When i send curl request, i see in nginx log:
10.10.10.95 - - [20/Jan/2020:14:32:06 +0300] "GET /apirest.php/initSession HTTP/1.1" 502 182 "-" "-"
What am I doing wrong?
Config:
ubuntu 16.04.5
Glpi 9.4.2
php7.0
nginx 1.10.3 (redirect to https)
Offline
You should see this log each time you log to get your session token I think. I got the same.
Offline
I solved the problem, it was necessary to change in /etc/php/7.0/fpm/pool.d/www.conf:
listen = /run/php/php7.0-fpm.sock
listen.owner = www-data
listen.group = www-data
And change config nginx in the php section:
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
Offline
Pages: 1