O VII and O VIII absorption by hot gas in the vicinity of the galaxy