jueves, 19 de septiembre de 2024

Curl: Check web server with hostname and IP

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_Address


Example:

curl -H 'Host: dashboard.com' ec2-18-207-220-253.compute-1.amazonaws.com:30100

No hay comentarios:

Publicar un comentario