Rebels fighting to take control of Libya from Col. Gadhafi have captured much of Zawiya, an important city on the road to the capital of Tripoli.