Mobile app version of vmapp.org
Login or Join
Debbie626

: When I search on my domain name in a browser, the IP address is returned for my site hosted with GoDaddy and NGINX The IP address of my site is returned when I do domain name search in

@Debbie626

Posted in: #Dns #Godaddy #IpAddress #Nginx #NodeJs

The IP address of my site is returned when I do domain name search in my browser.

I am using:


GoDaddy Hosting
Nginx
Node.js


Obviously I would like the domain name and not the IP address, how can this issue be resolved?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

Add this block to your NGINX config:

server {
listen 80;
server_name here.your.ip.address;
rewrite ^ example.com$request_uri? permanent;
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme