limit valid extensions and config path based on hostname