Come across interesting fact: In linux

echo $_SERVER['SERVER_NAME']; //somedomain.org
echo $_SERVER['HTTP_HOST']; //somedomain.org

In window

echo $_SERVER['SERVER_NAME']; //localhost
echo $_SERVER['HTTP_HOST']; //somedomain.org