I screwed up our server’s logging recently through lack of sleep, lack of caffeine reaction and silliness. In a word, I was tired and not paying attention.
In /etc/apache2/sites-available/ you list all the configuration files for your websites. In /etc/apache2/sites-enabled/ you make a symlink to the sites in /sites-available/
Sounds straight forward:
ln -s /etc/apache2/sites-available/www.domain.com .
So now if you want to deactivate a site simply remove the symlink. I made the mistake this morning of performing this command inside the /sites-enabled/ directory:
cp domain-config domain-config.0001
This was using the symlink to the file in the /sites-available/ and copying it to domain-config.0001. MUY Stupido but that said I don’t know how it screwed up the logging…
Lesson learned and everythings hunky dory again.