Don't hover over the dog when greeting him as this can be perceived as a threat.
Each dog is different but generally, dogs that enjoy petting like it on the chest, shoulders, and the base of the neck.
Most dogs dislike being touched on the top of the head, on the muzzle, ears, legs, paws, and tail.