bugfixes, apche-configure script and hosts generator