Fix for accident nginx remove
Problem
I accidentally removed nginx from my Linux Server (Debian Jessie). I did it after my experiments with phusion passenger. I made:
$ sudo rm -rf /etc/nginx
$ sudo rm /etc/init.d/nginx
And yes, I know that I made a stupid thing :)
After installing nginx by
$ sudo apt-get install nginx
I was able to run it. Test run
$ sudo nginx -t
output:
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
See details for solution...