Lord Shiva is also known as Nageshwara, in one of the temples of Jyotirlinga. This Jyotirlinga is in the location of Dwarka. The Shivalingam is facing South, with the Gomugam facing East. There is a story for this position.
A devotee by name Naamdev was singing bhajans in front of the Lord. Other devotees asked him to stand aside. Naamdev asked them to suggest one direction in which the Lord does not exist, so that he can stand there. The enraged devotees carried him and left him on the southside. To their astonishment, they found that the Linga was now facing South with the Gomugam facing East.
As per the epics like Shiva Purana, there once lived a rakshasa called Daruka, who was extremely cruel and tortured the good ones. But yet he was a great devotee of Lord Shiva. A Shiva devotee, Supriya who was a merchant reached the Darukavanam, where Daruka lived with his wife Daruki, while sailing with his goods.
Daruka asked Supriya to teach him the path of devotion to Shiva, the norms of performing pooja and penance. Fearing that Daruka would use any additional powers gained by such penance, to bad use, Supriya refused to guide him. The enraged Daruka began to torture Supriya.
Supriya however was staunch is his faith in the Lord and was unmoved by any torture. Lord Shiva was pleased and appeared and killed the demon Daruka. Daruki, Daruka’s wife, now started giving even more trouble than her husband. Shiva vanquished her too and gives darshan to his devotees at this place as Nageshwar.