Why google index website by IP?

I found something weird. Google crawl bot see server IP address as external website and show I have added redirect

server {
  listen 80;
  server_name 51.158.77.10;
  return 301 https://remoter.net;
}

Will it help?

Tomas Woksepp

Pretty sure server_name should be a domain

0 Likes
Maxim Dzhuliy Author

I already have a server section with a domain. And I didn't have IP address in my config

0 Likes
Tomas Woksepp

@dzumax I'm not entirely sure why Google shows your IP even after redirecting using 301, but putting a server block in Nginx for remoter.net will for sure get rid of whatever issue Google is having with your site.

0 Likes

I think what you are trying to do is a 301 redirection. maybe try proxy?

0 Likes
Maxim Dzhuliy Author

could you show an example?

0 Likes

Please sign in to leave a comment.