Replace $HTTP_HOST with $_SERVER["SERVER_NAME"]

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>