Question: what does it mean when a guy rubs the back of his head?
Answer: He's definitely nervous. Any sort of neck rubbing, hair playing, face touching, or hand fidgeting is a sign of subconscious nervousness. He might be nervous because he likes you or he might be nervous because of the topic you were discussing. The point is that he's nervous.