One rocket landed near the house of the governor in the morning, just as the Afghan president was holding a meeting there, local media cited security officials as saying. The other rocket hit the Kabul-Kandahar highway. Neither caused any casualties.
MENAFN news network said three rather than two rockets were fired at Ghazni city, citing provincial police chief Ramazan Ali Mohseni.
Ghani was visiting the city to review the security situation. No group immediately claimed credit for the attacks.
Last week, a rocket attack in Afghanistan was directed at a military university in the capital Kabul. That incident caused no harm either.