Hi, I've a problem with nginx. This is the error if I run this command:
root@orangepiplus:/etc/nginx# nginx -t
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2017/05/06 01:42:29 [emerg] 1505#0: open() "/var/log/nginx/access.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
The directory /var/log/nginx/ is deleted at every system reboot and this cause the error.
Someone can help me? Thanks