Hi, I am running dietpi on Rp4. Nginx installed as webserver. It simply stopped working. The error message i get when check on status is:
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─dietpi.conf
Active: failed (Result: exit-code) since Sat 2024-11-09 18:50:27 CET; 52s ago
Docs: man:nginx(8)
Process: 8807 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 23ms
Nov 09 18:50:27 DietPi systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Nov 09 18:50:27 DietPi nginx[8807]: 2024/11/09 18:50:27 [emerg] 8807#8807: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
Nov 09 18:50:27 DietPi nginx[8807]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 09 18:50:27 DietPi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 09 18:50:27 DietPi systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 09 18:50:27 DietPi systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
Is there anything to fix it?
Thank you!