#nginx
13 Einzeiler mit diesem Stichwort.
Alle Einzeiler mit Tag nginx
Alle nginx-server_name mit zugehöriger Konfigurationsdatei anzeigen
#nginx -T 2>/dev/null | grep -E "^# configuration file|server_name "
Häufigste IP-Adressen im Access-Log ermitteln
#awk '{print $1}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20
Meistaufgerufene URLs im Access-Log finden
#awk '{print $7}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20
nginx-Fehler einer Plesk-Domain anzeigen (502, 504)
#tail -n 50 /var/www/vhosts/system/example.com/logs/proxy_error_log
nginx-Konfiguration auf Syntaxfehler prüfen
#nginx -t
nginx-Konfiguration testen und nur bei Erfolg neu laden
#nginx -t && systemctl reload nginx
nginx-Version und einkompilierte Module anzeigen
$nginx -V 2>&1 | tr " " "\n" | grep -E "version|_module"
Prüfen, ob nginx in Plesk aktiviert ist
#plesk sbin nginxmng --status
Ursache für 502 Bad Gateway im nginx-Log finden
#grep -E "upstream|connect\(\) failed" /var/log/nginx/error.log | tail -20
Von Plesk erzeugte nginx-Konfiguration einer Domain anzeigen
#cat /var/www/vhosts/system/example.com/conf/nginx.conf
Webserver-Konfiguration einer Domain mit plesk repair reparieren
#plesk repair web example.com -y
Webserver-Konfiguration einer Domain neu erzeugen
#plesk sbin httpdmng --reconfigure-domain example.com
Zusätzliche nginx-Anweisungen einer Plesk-Domain anzeigen
#cat /var/www/vhosts/system/example.com/conf/vhost_nginx.conf