Not sure if this is the right section for this, but I'm pretty sure it will be moved if there is a better place.

Wandering around in server logs yesterday when I saw an entry that chilled my shit.
Somebody called for my config.inc file and it returned a code 200. That means some joker has my information, right?
Now, config.inc is used on this site to access the database (mysql) for this site. It happens that the config data is used by two more sites that use the same db.
So, three websites that use this db to produce dynamic pages have been (potentially) compromised.
I'll have to go in and change the password for this db, then make a new config file, then change all of the pages on the three sites that use this.....yadda yadda.....
Getting bored just typing this stuff. Imagine your pain reading it.
So how do I protect myself from a similar problem in the future? My first thought was to name the config something like endlessJunk.php or shitless.js. Not sure if that will provide the protection I need.
What do you suggest?