Reinstalling Configuration Files via apt on Ubuntu Revision as of Monday, 19 December 2022 at 18:40 UTC

I accidentally hosed /etc/nginx thinking it would be reinstalled with apt install nginx. When no config files showed up, I had to do this to get things going.

# Purge, then reinstall
apt-get purge nginx nginx-common nginx-full
apt-get install nginx

# Old option
apt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full