I deleted my NGINX log because it was very large, thinking that NGINX would automatically create a new one in its place. It didn't, and now I don't have logs. The file was previously located at /opt/nginx/logs/error.log
. I tried creating a new file with the same permissions in the same location but it doesn't appear to have helped. I'm running nginx/1.4.7 on an ubuntu 12.10 server.
How do I get my logging back?
I've tried sudo service nginx restart
and it says nginx: unrecognized service
. I think this might be because I'm using NGINX with Phusion Passenger to serve a rails app and Passenger has changed a few things. For example, NGINX lives in /opt/nginx
instead of init.d
.