Maggie Michael, Ryan Lucas - Moammar Gadhafi vowed to launch a final assault on the opposition's capital Benghazi and crush the rebellion as his forces advanced toward the city and warplanes bombed its airport Thursday. In the face of Gadhafi's increasingly powerful offensive, the United Nations Security Council passed a resolution to strike his forces on land, sea and air.

After weeks of hesitancy over imposing a no-fly zone in Libya, the United States made a dramatic about-face, calling for even more expanded action, including strikes on Gadhafi's ground forces besieging rebel-held cities.

The Security Council voted Thursday evening in New York in favour of a resolution that would open the way for that, establishing a no-fly zone but also authorizing member states to "take all necessary measures" to protect civilians from attacks by Gadhafi's forces, but ruling out a "foreign occupation," meaning a ground offensive.

In Benghazi, the main rebel stronghold, a large crowd watching the vote on an outdoor TV projection burst into celebration as green and red fireworks burst in the air, as broadcast live on the Al-Jazeera satellite TV channel.

A top official of the rebels' transitional national council, Ali al-Essawi, welcomed the resolution. "We think that this resolution ... will mark the end of the impunity and dictatorship of Gadhafi," he told The Associated Press in the Benghazi.

In Tobruk, east of Benghazi, happy Libyans fired weapons in the air to celebrate the vote.

In contrast, a dentist in the capital of Tripoli rejected the measure. "You are in fact protecting people carrying weapons against the official forces. This is nonsense," said Mohammed Salah, 33.

In an interview broadcast just before the Security Council voted, Gadhafi dismissed its actions. "The U.N. Security Council has no mandate. We don't acknowledge their resolutions," he told the Portuguese public Radiotelevisao Portuguesa. He pledged to respond harshly to U.N.-sponsored attacks. "If the world is crazy, we will be crazy too, he said.

Speaking to reporters in Tripoli after the vote, Libyan Deputy Foreign Minister Khalid Kaim took a conciliatory tone, offering to negotiat a cease-fire with the rebels.

He welcomed the Security Council's endorsement of the territorial unity of Libya and concern for its citizens, but called on the world not to allow them to receive weapons. because "if any countries do that, they will be inviting Libyans to kill each other."

The shift toward international action reflected the past week's swift reversal of the realities on the ground, where once-confident rebels are now in danger of being crushed under an overpowering pro-Gadhafi force using rockets, artillery, tanks, warplanes. That force has advanced along the Mediterranean coast aiming to recapture the rebel-held eastern half of Libya.

Gadhafi troops encircled the city of Ajdabiya, the first in the path of their march, but also had some troops positioned beyond it toward Benghazi, Libya's second largest city and the headquarters of the opposition's leadership.

In an address Thursday evening, Gadhafi proclaimed that the "hour of decision has come" and that his regime would begin "tonight" to put an end to the rebellion.

"The matter has been decided ... we are coming," he said, calling in by telephone to state TV and addressing the people of Benghazi. "There is amnesty for those who throw away their weapons and sits in their house ... No matter what they did in the past, (it's) forgiven," he said.

But for those who resist, he said, "there will be no mercy or compassion."

Gadhafi says his forces would "rescue" the people of Benghazi from "traitors" and warned them not to stand alongside the opposition.

"This is your happy day, we will destroy your enemies," he said. "Prepare for this moment to get rid of the traitors. Tomorrow we will show the world, to see if the city is one of traitors or heroes ... Don't betray me, my beloved Benghazi."

The closest known position of Gadhafi's ground forces from Benghazi was still about 80 miles (130 kilometres) to the south, making it unclear if they would move on the city Thursday night as Gadhafi boasted. But during the day, several regime warplanes bombed the city's Benina Airport.

Several witnesses said rebels in Benghazi succeeded in shooting down at least two of the attacking aircraft. Mohammed Abdel-Rahman, a 42-year-old merchant who lives nearby, said he saw one of the warplanes shot down after striking Benina -- a civilian and military air facility about 12 miles (20 kilometres) from the centre of the city. He said the strikes caused light damage.

Another witness, medical official Qassem al-Shibli, told The Associated Press that he saw three planes attack the airport and nearby rebel military camps before two were shot down. A third witness saw fire trucks fighting a blaze at the airport, and black smoke billowing from the area. Another witness reported that a rebel warplane crashed north of Benghazi, apparently after running out of fuel.

At the same time, the rebels were sending their own warplanes in an attempt to break the regime's assault on Ajdabiya, a city about 100 miles (150 kilometres) southwest of Benghazi that has been under a punishing siege by Gadhafi's forces the past two days. Three rebel warplanes and helicopters struck government troops massed at Ajdabiya's western gates, said Mustafa Gheriani, a spokesman in Benghazi, and Abdel-Bari Zwei, an opposition activist in Ajdabiya.

But by Thursday afternoon, Gadhafi's army were holding the southern, eastern and western outskirts of Ajdabiya. Further outflanking the rebels, troops landing from sea swept into the nearby Mediterranean port town of Zwitina, 15 miles (25 kilometres) north, between Ajdabiya and Benghazi.

Ajdabiya, with some is the first rebel-held city in the east that Gadhafi troops have tried to recapture, heavily bombarding it since Tuesday, with rockets and shells raining down on residential areas, according to witnesses. Most of the non-male population has fled. At least 30 people have been killed and 80 wounded since the siege began, according to an official at the hospital. He said medicines were running out and that electricity in the city was off and on. That may be in part from rebels themselves, who have shut off power at night to hide their movements.

Fierce battles erupted between rebels and government troops at the city's southern gates in the pre-dawn hours Thursday, said Zwei. He and other residents told AP that Gadhafi forces were remaining on the city outskirts, occasionally clashing and bombarding but still not able -- or trying -- to moving into the centre where rebel fighters were dug in.

Zwei said the forces may be trying to tie down rebels in Ajdabiya while other troops go around the city to assault Benghazi.

Benghazi, Libya's second largest city with a population of more than 700,000, was gearing up for the defence.

Gheriani, the opposition spokesman, told AP the city was "armed to the teeth" and the opposition is ready to defend it. Young men were volunteering for basic military training with army units allied to the rebellion, said one resident, speaking on condition of anonymity for fear of future persecution by Gadhafi's regime.

More checkpoints were popping up at intersections and on main roads, manned by men in uniform armed with AK-47s and backed by anti-aircraft guns mounted on pickup trucks, in the city, 620 miles (1,000 kilometres) east of Tripoli along the Mediterranean coast. The Red Cross said it was leaving Benghazi because of deteriorating security and moving to the city of Tobruk, further east.

Libyan officials were also vowing to retake Misrata, the last rebel-held city in the western half of the country, which has been sealed off by Gadhafi troops in a blockade that has cut off most water and food supplies for days, residents said.

"The Libyan forces are surrounding the city and will move in slowly to avoid casualties. They will be done by tomorrow if not today," government spokesman Ibrahim Moussa told reporters in the capital.

Wednesday night, Gadhafi forces besieging Misrata launched a heavy assault that doctors at the city hospital said left 18 dead, according to Mokhtar Ali, an opposition figure in exile outside Libya who was in touch with relatives in the city. During the day Thursday, the forces remained on the outskirts of Misrata, Libya's third largest city, 125 miles (200 kilometres) southeast of Tripoli

Gheriani said by telephone from Benghazi that the opposition was hoping for a positive U.N. Security Council vote but "if not, we'll rely on ourselves and do what we can."

Western military action against Gadhafi's forces could dramatically change the balance of power on the ground.

France's U.N. Ambassador Gerard Araud said he expects more than one of the council's 15 members to abstain when the vote takes place at 6 p.m. EDT (2300 GMT) on the resolution, but council diplomats said they do not expect it to be vetoed.

The draft resolution would "establish a ban on all flights in the airspace" in Libya and authorize members to take "all necessary measures" to protect civilians and populated areas under threat of attack "including Benghazi, while excluding an occupation force."

The United States already has warships positioned near Libya. U.S. Ambassador Susan Rice said the Obama administration is "fully focused on the urgency and the gravity" of the situation in Libya. After eight hours of closed-door talked Wednesday, she said a no-fly zone now was not enough, saying it has "inherent limitations in terms of protection of civilians at immediate risk."

Michael reported from Cairo. AP correspondents Ben Hubbard and Diaa Hadid in Cairo and Edith M. Lederer at the United Nations contributed to this report.