Freepbx nginx

Hello, I’d like to start Freepbx 15 on nginx and php-fpm
php 7.1 and latest version nginx installed
server {

root /var/www/html/;
index index.php index.html index.htm;

    location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
        root /var/www/html;

	location / {
		try_files $uri $uri/ /index.php?q=$uri&$args;

        location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;

fastcgi_param DOCUMENT_ROOT /var/www/html/;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED /var/www/html/$fastcgi_script_name;

include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;

and have 2 issues:
$.removeCookie is not a function
https://url/admin/ajax.php?module=core&command=getExtensionGrid&type=custom&search=&order=asc&_=1581405862113 401
{“error”:“Not Authenticated”}

althought redirected to dashboard page after login. Possible somebody has already installed freepbx with nginx, please could you you help how to configure that?

I tried that config, but skipped section location ~ .php$
and result is the same.

tried to leave section location ~ .php$ - nginx started but blank empty page(nothing at the nginx log)

It’s working for me. If you find something I left out of the instructions by mistake, let me know.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.