Nginx not startable / no webUI error in servers.conf:35


Recommended Posts

HI,

I have a big problem :/ I can't connect to my web UI... When entering via SSH and trying to start Nginx manually via console I get:
nginx: [emerg] invalid number of arguments in "return" directive in /etc/nginx/conf.d/servers.conf:35 

 

login as: root
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
Linux 5.15.30-Unraid.
root@nas:~# /etc/rc.d/rc.nginx status
Nginx is not running
root@nas:~# /etc/rc.d/rc.nginx start
Starting Nginx server daemon...
nginx: [emerg] invalid number of arguments in "return" directive in /etc/nginx/conf.d/servers.conf:35


I also attached the diagnostics log.... maybe someone find something suspicious there

 

Can anybody help me? I searched the web for over an Hour but seems like I'm too stupid to get this fixed :/ 

nas-diagnostics-20220412-0137.zip

Edited by majo23
link
Link to comment

since I had some other issues with Nginx as well - maybe it would be best if I reformat the flash drive completely... 

I can save the array by keeping the Diskorder completely like it was - but what about docker containers? Will I lose them by using a fresh unraid stick?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.