A home reduction and an unnecessary red card on Miro Tenho within three minutes made the ending dramatic.
But Djurgården held on and the third straight win in the Conference League lifted the team to an 8th place, a direct spot in the round of 16, ahead of tonight's matches.
Djurgården concludes the group stage at home against Legia Warszawa on December 19.
The Stockholm team had a tough time in the rain and strong headwind in the first half.
In the second, they got the wind at their backs and started shooting.
Gustav Wikheim hit the crossbar and Denis Hümmet the goalpost before the breakthrough came.
In the 62nd minute, Keita Kosugi scored a cannon goal with his left foot and Djurgården took the lead 1–0.
Just three minutes later, Hümmet set up Wikheim, who chipped in 2–0 over the advancing Ingvar Jónsson in the home goal.
But the reduction came. In the 72nd minute, Ari Sigurpálsson gave the home team new hope with a reduction, and it grew even more when Djurgården's defender Miro Tenho received the red card in the 75th minute.
This after an unnecessary tackle on the midfield.
Tobias Gulliksen was close to deciding with a 3–1 goal, but hit the post in the 85th minute.
But Djurgården could hold on in the bad weather to the delight of around 300 traveling supporters.
Djurgården was in the round of 16 in the Conference League two years ago when they were eliminated by Lech Poznan.