这是手册上的解释:
The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user.
Note: Your web server must be configured to create this variable. For example in Apache you'll need HostnameLookups On inside httpd.conf for it to exist.
需要在apache服务器配置
上面举例的如:
httpd.conf文件
需要修改HostnameLookups为On
The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user.
Note: Your web server must be configured to create this variable. For example in Apache you'll need HostnameLookups On inside httpd.conf for it to exist.
需要在apache服务器配置
上面举例的如:
httpd.conf文件
需要修改HostnameLookups为On
转载于:https://blog.51cto.com/zzjnet/133705