Aberdeen will take a 2-1 lead to Cyprus next week after beating Apollon Limassol at Pittodrie in their Europa League qualifier on Thursday night.
Ryan Christie gave the Dons an early lead with a well-placed header but the visitors came into the game and equalised just before the hour mark before they were reduced to 10 men.
Derek McInnes' men took advantage when Graeme Shinnie found the net with a superb effort from long range with 12 minutes remaining.