I'm on Ubuntu and I was trying to recover the original settings of /etc/nginx/sites-enabled/default when I accidentally deleted the entire folder. Uninstalling and reinstalling nginx through apt-get won't recreate the original folders.
What can I do to recover them?
feedback
|
|
Force the reinstall of the default config files with the Looks like the packaging layout for nginx changed in 11.04. If you're on 10.10 or older:
Or 11.04 and newer:
| |||
|
feedback
|
|
check for the deb package in your ubuntu system [your version of deb file may be different]
open it using archive manager. Inside the archive check for folder /etc/nginx This is the default nginx installation cfg folder. You can copy from here to /etc . | ||||
|
feedback
|
|
Don't just apt-get remove it, this will leave configurations behind. apt-get purge it, and any unused dependency. You can check inatallation status by grepping dpkg -l output | |||
|
feedback
|