In the other side of Friday's draw - the champions section - Celtic were pitted against FC Astana.
Brendan Rodgers' side faced the Kazakhstan team in the third qualifying round last year, running out 3-2 aggregate winners.
The first legs will be played on August 15 and 16, with the return fixtures taking place on August 22 and 23.
Full draw:
APOEL v Slavia Prague
Qarabag v FC Copenhagen
Olympiacos v Rijeka
Celtic v Astana
Hapoel Beer Sheva v Maribor
Istanbul Basaksehir v Sevilla
Young Boys v CSKA Moscow
Napoli v Nice
u200bHoffenheim v Liverpool
Sporting Lisbon v Steaua Bucharest
More to follow.