Update Apache config when removing sites

Some of you may have noticed that OCmodshop was down for a few hours today.  The site would not respond, nor any of the other sites hosted on the main server, although all other services would respond properly.  I could login and FTP and all the other things.  My server was sending me reports through email, even after the web alert was triggered… very strange.

I tried to restart Apache and it errored out saying that certain directories no longer existed.  I had forgotten that I cleaned up sites that were no longer being used and deleted their accounts (which also included their directories).  So, Apache was looking for sites that no longer existed.


So kids, whenever you remove your sites hosted on a Linux server, be sure to update your Apache config file!

That is all.  Resume y0ur exciting OCmodshop experience!

Alan is a web architect, stand-up comedian, and your friendly neighborhood Grammar Nazi. You can stalk him on the Interwebs via Google+, Facebook and follow his ass on Twitter @ocmodshop.