Both fires were threatening the Igman ammunition factory on the outskirts of Konjic village from opposite sides, with one of them burning in the heavily mined forest.
"We are doing our best but with the heat and the wind the fires are spreading fast and there is not much we can do about it. It's all in the minefields," said Fadil Tatar, commander of Konjic civil protection.
Tatar, who is in charge of coordinating the rescue services and firefighters, said several explosions could be heard Thursday morning as the fire set off some of the mines.
This summer has been one of the hottest on record in Bosnia, and it hasn't rained in the country for two months.
The ammunition production at the factory is located in underground tunnels, which could decrease the danger that the fires were presenting, authorities said. They did not say how much ammunition was being stored there.
One of the two fires was raging just 500 meters (yards) from people's houses.
Further south, several villages were evacuated because of other fires that have been raging around the southern city of Mostar.
In eastern Bosnia, near the town of Gorazde, another wildfire was burning in a minefield, but the blaze was not close to people's homes and didn't appear to be setting off explosions, officials said.
Bosnia's 1992-1995 war turned it into one of the world's most mine-infested countries.
Written by Associated Press