From your history it seems that you might be having some chronic infection on your scalp
giving rise to scaly rash behind ear or base of skull due to falling of infected particles.Consult dermatologist
and get examined.
After diagnosis he will go for treatment accordingly.
Ok and take care.