There is no way to protect your village to prevent being attacked for a longer period of time than shields can.
I would reccomend spending all of your resources on upgrades before you leave, so that attackers have nothing to steal. On the other hand, changing your base to a farming layout will divert an attackers atention from your loot to your town hall.
An example of a TH9 farming layout (town hall outside walls):
Image from this thread on the Clash of Clans forum