WebGUI will nicht / NGINX Fehlermeldung


jj1987
Go to solution Solved by blinddark,

Recommended Posts

Moin zusammen,

 

ich habe auf RC3 umgestellt, und auch das Zertifikat-Upgrade vorgenommen (keine Ahnung ob irgendetwas davon das Problem verursacht, aber der Vollständigkeit halber sei das hier einfach mal erwähnt).

Weil ich noch was bei mir im UEFI umstellen wollte, habe ich den Server neugestartet. Er bootet auch in Unraid, die Shares sind erreichbar, SSH geht auch. Nur das WebGUI will nicht

Hatte daraufhin versucht nginx neuzustarten per "/etc/rc.d/rc.nginx restart" das gab dann die Meldung, dass Nginx gar nicht läuft🤔

also neuer Versuch und "/etc/rc.d/rc.nginx start" probiert. Und prompt kommt folgende Fehlermeldung:

Starting Nginx server daemon...
nginx: [emerg] invalid number of arguments in "return" directive in /etc/nginx/conf.d/servers.conf:34

anbei mal die Diagnostics.

 

Jemand ne Idee wie man das wieder hinbekommt?

diagnostics.zip

Link to comment

So jetzt habe ich mir die besagte nginx.conf mal angeschaut, und ich denke es hat tatsächlich mit dne neuen Wildcart-Zertifikaten zu tun und in meinem Fall mit einem nicht mehr vorhandenen zweiten NIC (Mellanox). dort taucht nämlich auch die IP 10.0.0.2 auf:

Quote

    }
}
#
# Always accept http requests from localhost
# ex: http://localhost
# ex: http://127.0.0.1
#
server {
    listen 127.0.0.1:80;
    listen [::1]:80;
    #
    include /etc/nginx/conf.d/locations.conf;
}
#
# Redirect http requests to https
# ex: http://tower.local -> https://hash.unraid.net
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    return 302 https://192-168-1-97
10-0-0-2.3b0bbXXX.myunraid.net$request_uri;

}
#
# Redirect https (self-signed cert) requests to https (uploaded cert)
# ex: https://tower.local -> https://hash.unraid.net
#
server {
    listen 443 ssl http2 default_server;
    listen [::]:443 ssl http2 default_server;
    # Ok to use concatenated pem files; nginx will do the right thing.
    ssl_certificate         /boot/config/ssl/certs/Unraid_unraid_bundle.pem;
    ssl_certificate_key     /boot/config/ssl/certs/Unraid_unraid_bundle.pem;
    ssl_trusted_certificate /boot/config/ssl/certs/Unraid_unraid_bundle.pem;
    return 302 https://192-168-1-97
10-0-0-2.3b0bbXXX.myunraid.net$request_uri;

}
#
# Port settings for https
# ex: https://lan-ip.hash.myunraid.net
# ex: https://wan-ip.hash.myunraid.net
# ex: https://hash.unraid.net
# ex: https://www.hash.unraid.net
#
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name 192-168-1-97
10-0-0-2.3b0bbXXX.myunraid.net ;

    # Ok to use concatenated pem files; nginx will do the right thing.
    ssl_certificate         /boot/config/ssl/certs/certificate_bundle.pem;
    ssl_certificate_key     /boot/config/ssl/certs/certificate_bundle.pem;
    ssl_trusted_certificate /boot/config/ssl/certs/certificate_bundle.pem;
    #
    # Enable OCSP stapling
    #
    ssl_stapling on;
    ssl_stapling_verify on;
    #
    location ~ /wsproxy/443/ { return 403; }
    include /etc/nginx/conf.d/locations.conf;
}

Die ist von meinem "10G-Direkt-Link" mit meinem PC.

Nur ist die Mellanox gar nicht eingebaut, und war es auch nicht zum Zeitpunkt des Zertfikat Upgrades. Somit hätte die mMn gar nicht beachtet werden dürfen.

Und der Zeilenumbruch tut dann vermutlich sein übriges?!

reicht es also die 10.0.0.2 überall einfach zu entfernen?

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.