Aefligen is a municipality of the administrative district of Emmental in the canton of Bern in Switzerland.