Show domain name instead of IP address using nginx
I am using nginx and I have a website I am building. When I load my website using the domain name, it then switches the domain name to the IP address in the address bar after my site loads. I know I need to change a setting in a file somewhere in order for the site to display (and keep the domain displayed) instead of showing the IP but I can not figure it out for the life of me.
I am using the latest nginx release and CentOS 6.5.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.