(Disclaimer: I'm not a doctor, etc)
Ebola is not contagious in the same way as, say, influenza outbreaks.
It's a horrible contagious disease, but it requires an exchange of bodily fluids for transmission - particularly blood, sweat, sexual fluids, vomit, bile etc. Transmission usually occurs in close proximity - between family members, sexual partners or others sharing accommodation, through medical contact, or contact with improperly-treated deceased.
Check your own government's travel advice: but for an example, the (very cautious) UK government are currently not even warning people against travel to Guinea let alone Morocco - here's their specific health advice on Ebola in Guinea:
The risk to most travellers is very low... Transmission of Ebola can only occur when there is direct contact with the blood or body fluids of an infected person, animal, or objects, such as needles, that have been contaminated with blood or body fluids.
As for Morocco, not only is it the other side of the Sahara to the Ebola outbreak, the areas between (Northern Mali, Western Sahara, South West Algeria) are unstable barely populated areas with banditry and very little travel or trade. If ebola was to spread to Morocco, it would almost certainly be by plane travel, which is a) closely monitored and b) no more likely to arrive at Morocco than any other country that flies to Guinea.
Those Ebola horror stories from the past that people love to share, of terrifyingly fast-spreading outbreaks, usually involve poorly prepared hospitals and communities responding in ways that aid transmission, such as re-using needles, traditional burial practices such as embalming bodies, and treating the sick without taking appropriate precautions. There have been major efforts since then to ensure medical facilities are better trained.
You'll see from news reports that even in the countries most effected, the numbers of people affected are (so far, touch wood) low.
If you were going to one of the country where there were some cases of ebola and you were worried, these might be sensible precautions:
- Take similar precautions as you would to avoid HIV infection (no unsafe sex or shared needle use, avoid other exchanges of bodily fluids)
- Consider additional precautions to avoid exchanging sweat. Maybe skip the gym.
- If you're exceptionally worried or there were reports of medium-sized outbreaks while there, and you wanted to feel like you were being extra-cautious:
- you might want to make more effort to maintain personal space and maybe avoid skin contact such as shaking hands,
- you might want to wash your hands more than usual and consider using hand sanitizers after physical contact with people or things that have been in close contact to other people before touching food or your face,
- ...but even these might be a bit excessive unless you were right in an outbreak, in which case there would probably be an evacuation plan.
I'll end with a quote in the USA Today article As Ebola spreads in Africa, how worried should I be? from a director of virology at the U.S. Naval Medical Research Unit:
"You probably couldn't get Ebola if you went to Conakry [capital of Guinea] now if you tried"
If it was me, I'd keep an eye on the news, and I'd take normal health precautions, but wouldn't let worries spoil the trip.