Nginx failed to start

I have multiple problems but i need this corrected asp please.
so when i ran the below code.

sudo nginx -t

this is what i got as the error.

[emerg] invalid number of arguments in “fastcgi_pass” directive in /etc/nginx/conf.d/domains/mydomainname.conf :37

so when i also did

sudo nginx -t -c /etc/nginx/conf.d/domains/mydomainname.conf

i got the following errors too.

[emerg] "server’’ directive is not allowed here in /etc/nginx/conf.d/domains/mydomainname.conf :7

I will be glad if i get some assistance please. Thank you

contents of /etc/nginx/conf.d/domains/mydomainname.conf

Thanks for your support but i do not understand what i am suppose to do. So please i will be glad if you can explain further with details so it will be easier to resolve my issue

I would try to rebuild the web for that user, by using the command
v-rebuild-web-domain

Always make & test backups before doing so.

2 Likes

thanks man this really works

1 Like

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