Fix of definitions templates and generation of apache configuration

files for wares