Nginx spotweb Website kaput
D00MSAYER 25.05.2026 - 09:55 328 3
D00MSAYER
Big d00d
|
Aloha! Hab auf meinem NAS spotweb laufen, Zugriff erfolgt über nginx auf Port 1650. Seit einem update funktionierts aber nicht mehr richtig. So sollts aussehen:  Seit update:  Nginx config: server {
# Change these settings to match your machine.
listen 1650;
server_name spotweb;
large_client_header_buffers 12 128k;
# These are the log locations, you should not have to change these.
access_log /var/log/nginx/spotweb_access.log;
error_log /var/log/nginx/spotweb_error.log;
# This is the root web folder for nZEDb, you shouldn't have to change this.
root /var/www/spotweb/;
index index.html index.htm index.php;
# Everything below this should not be changed unless noted.
location ~* \.(?:ico|css|js|gif|inc|txt|gz|xml|png|jpe?g) {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location / {
try_files $uri $uri/ @rewrites;
}
location @rewrites {
rewrite ^/([^/\.]+)/([^/]+)/([^/]+)/? /index.php?page=$1&id=$2&subpage=$3 last;
rewrite ^/([^/\.]+)/([^/]+)/?$ /index.php?page=$1&id=$2 last;
rewrite ^/([^/\.]+)/?$ /index.php?page=$1 last;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
# Uncomment the following line and comment the .sock line if you want to use TCP.
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
# The next two lines should go in your fastcgi_params
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Links führen jetzt aufn Standard 80er Port (da ist aber die Verwaltungsseite vom openmediavault)?
|
COLOSSUS
AdministratorGNUltra
|
Seit einem update funktionierts aber nicht mehr richtig. Seit einem Update *wovon*? Was zeigt das access log von nginx, oder alternativ das "Network"-Tab der Browser Dev-Tools, wenn du das hinnige Webinterfade ansurfst?
|
nexus_VI
Overnumerousness!
|
Ich schätze das Upgrade wird dir den PHP Upstream verändert haben e.g. anderer Socket. Würde mich in /run/php mal umsehen.
|
D00MSAYER
Big d00d
|
@colo: update über die OMV Service-Seite, dort startet dann apt. Leider nix in den Logs (spotweb/omv-seite) @nexus: config verweist auf richtige php fpm version und service war auch aktiv.
Läuft jetzt wieder. hab die nginx config der OMV Service Seite kopiert und fürs spotweb angepasst.
|