Answer the question
In order to leave comments, you need to log in
What happened to nginx.conf?
Tried to find the nginx.conf file. Completed find / -name nginx.conf
. I got the path /etc/init/nginx.conf
(although earlier this file was always in /etc/nginx
).
I opened the file, and there instead of the usual:
server {
...
}
description "nginx - small, powerful, scalable web/proxy server"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
pre-start script
[ -x /usr/sbin/nginx ] || { stop; exit 0; }
/usr/sbin/nginx -q -t -g 'daemon on; master_process on;' || { stop; exit 0; }
end script
exec /usr/sbin/nginx -g 'daemon on; master_process on;'
pre-stop exec /usr/sbin/nginx -s quit
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question