Adding Host header to curl to make Nginx routing to work properly while testing

Views: 168   

Following command shows you how to add Host header while using it in curl. This way you can make the Nginx to send right data while using with curl and directly hitting the IP Address.

curl --verbose --header 'Host: www.foo.com' '1.2.4.5'
On By