M
M
Michael2017-02-28 21:47:18
Nginx
Michael, 2017-02-28 21:47:18

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

Never seen this before. How can I return the "usual" nginx.conf? Reinstalling nginx did not help
OS - Ubuntu 16.04

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-02-28
@mak_ufo

serverfault.com/questions/82801/linux-how-to-resto...
apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall nginx
aptitude install -o Dpkg::Options ::=--force-confmiss nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question