Page 1 of 1

[Nginx] invalid number of arguments in "fastcgi_pass" directive

Posted: Wed Jan 23, 2019 8:00 pm
by phunkb

Code: Select all

user@server:~$ sudo nginx -t
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /home/admin/conf/web/domain.com.nginx.conf:22
I get the above, then in config i check and its like this;

Code: Select all

 location ~ [^/]\.php(/|$) {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            if (!-f $document_root$fastcgi_script_name) {
                return  404;
            }

            fastcgi_pass;
            fastcgi_index   index.php;
            include         /etc/nginx/fastcgi_params;
        }
Any ideas? Thanks!

Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive

Posted: Wed Jan 23, 2019 10:32 pm
by grayfolk

Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive

Posted: Wed Jan 23, 2019 10:47 pm
by phunkb
Hi! Thanks, I have put localhost:9000 in there and rebooted but the problem is still there.

Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive

Posted: Wed Jan 23, 2019 10:59 pm
by grayfolk
Your config are corrupted. Try to rebuild web-config via Vesta panel.

Re: [Nginx] invalid number of arguments in "fastcgi_pass" directive

Posted: Wed Jan 23, 2019 11:01 pm
by phunkb
grayfolk wrote:
Wed Jan 23, 2019 10:59 pm
Your config are corrupted. Try to rebuild web-config via Vesta panel.
Will do, although, where is that option? :P thanks