How to configure NGINX to returns 404 for non hosted domains

Sergi Rodríguez  
11-08-2021 11:49  
  2 minutos de lectura  
I had to solve this problem: someone pointed his domain name to the IP of my server, and then by default NGINX returns the 200 code and Success default page for new domain names. So i searched the way to configure NGINX to return only 404 error code when the domain is not hosted in my server.
Etiquetas : server | linux
Visitas 1672
Comentarios 0

Your ubuntu server has lost network connection?

Sergi Rodríguez  
17-01-2021 15:56  
  5 minutos de lectura  
I'm not an specialist on this area, but a novel sysadmin i had to solve this situation and it took to me almost 10 hours (2 days) to get it well solved. I want to share what i learned with you. I need to express my thanks to the great customer support team at (my BEST cloud hosting provider).
Etiquetas : network | server | linux | hosting
Visitas 2466
Comentarios 0


¡¡ Le respondemos antes de 24h !!
Puede dejarnos su teléfono.

Puede rellenar el formulario (pulsar botón derecha) o bien aquí tiene nuestros datos de contacto.

(pregunta anti-robots)


Revisar consentimientos a cookies