dhiraj900 :
I am having debian vagrant. I have done virtual host configuration in its apache as servername https:local-dev02.sitename.com.
And used in my windows machine host file 127.0.0.1 local-dev02.sitename.com
.
I can access my site in windows' browser as https://local-dev02.sitename.com:8443/
.
But I am unable to do
ping https://local-dev02.sitename.com
OR
curl https://local-dev02.sitename.com
OR
wget https://local-dev02.sitename.com
Markus Zeller :
It is only possible to ping a hostname or IP address, but not an URL. So you need to put off the protocol like so
ping local-dev02.sitename.com
To reach your hosts via the hostnames, please add the IPs and hostnames to the /etc/hosts
file.
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=346145&siteId=1