Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
The IP address of my site is returned when I do domain name search in my browser.
I am using:
Obviously I would like the domain name and not the IP address, how can this issue be resolved?
'Google can index IP addresses too'
Add this block to your NGINX config:
rewrite ^ http://example.com$request_uri? permanent;
Required, but never shown