HTTP_HOST and SERVER_NAME in PHP's SERVER reserved variables are often the same. The reason is that the server port is 80, then HTTP_HOST will be omitted and not displayed, and the default port of the HTTP service is 80, so in most cases, HTTP_HOST This port number is not displayed. And if an ssl link is used, the port number will be displayed. So HTTP_HOST = SERVER_NAME:SERVER_PORT