Question: has apocalypse ever fought thanos?
Answer: Nope, Thanos and Apocalypse have never encountered each other in a comic. Not even in an alternate universe.