The configuration space of low-dimensional Yang-Mills theories