hd.*_*hd. 41 apache server-variables
这两个变量有什么区别?
REMOTE_HOST
和REMOTE_ADDR
.
Rue*_*uel 37
REMOTE_HOST属于客户端的主机名(即发出请求的计算机).REMOTE_ADDR是指客户端的IP地址.
有时主机名是不可解析的,因此REMOTE_HOST将返回REMOTE_ADDR或IP地址.
NOZ*_*IGH 10
REMOTE_ADDR = hostnumber\n hostnumber = ipv4-address | ipv6-address\n ipv4-address = 1*3digit "." 1*3digit "." 1*3digit "." 1*3digit\n ipv6-address = hexpart [ ":" ipv4-address ]\n hexpart = hexseq | ( [ hexseq ] "::" [ hexseq ] )\n hexseq = 1*4hex *( ":" 1*4hex )\n
Run Code Online (Sandbox Code Playgroud)\nThe REMOTE_HOST variable contains the fully qualified domain name of\n the client sending the request to the server, if available, otherwise\n NULL. Fully qualified domain names take the form as described in\n section 3.5 of RFC 1034 [17] and section 2.1 of RFC 1123 [12].\n Domain names are not case sensitive.\n\n REMOTE_HOST = "" | hostname | hostnumber\n hostname = *( domainlabel "." ) toplabel [ "." ]\n domainlabel = alphanum [ *alphahypdigit alphanum ]\n toplabel = alpha [ *alphahypdigit alphanum ]\n alphahypdigit = alphanum | "-"\n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
57778 次 |
最近记录: |