Aceh is the only province in the world's most populous Muslim-majority country that imposes sharia law. People can face floggings for a range of offences -- from gambling, to drinking alcohol, to gay sex.
In the latest caning, five people -- two women and three men -- were flogged in front of a cheering crowd at a mosque in the provincial capital Banda Aceh.
The 34-year-old woman who yelled in pain had been found guilty of spending time in close proximity with a man who was not her husband in contravention of Aceh's Islamic regulations.
She was lashed seven times with a rattan cane by a man wearing long robes and a hood, with just slits for the eyes.
"It hurts so bad," the woman said, raising her arms into the air, as she was beaten.
The 32-year-old man with whom she was caught was also flogged seven times.
Two university students, both 19, received 100 lashes of the cane after they confessed to sex outside marriage. They stared at the ground as they were flogged, showing little emotion.
A man found guilty of sex outside marriage was flogged 22 times although his partner, who is two-months pregnant, is still waiting to learn her fate after facing trial at an Islamic court.
However Aceh authorities typically spare pregnant women from canings.