A nice way to check if the server is responding for a particular hostname. In this case, we attach the host parameter of the HTTP, and the hostname + port.
If you are sending traffic to IP with a different Host entry, it will not connect to the right service and will serve default-backend.
Try:
curl -H 'Host: aws-dns-name.org' IP_AddressExample:
curl -H 'Host: dashboard.com' ec2-18-207-220-253.compute-1.amazonaws.com:30100
curl --resolve "www.example.com:80:127.0.0.1" -i http://www.example.com
No hay comentarios:
Publicar un comentario