[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] REMOTE_HOST



Hi Mike,

> Does any one know why REMOTE_HOST won't work on RaQ3s? Also is there any
way
> to activate it?

The REMOTE_HOST variable is only filled, if you activate name resolution in
Apache. I would however _not_ recommend that, as it adds a small delay to
each page view.

Instead use the REMOTE_ADDR variable, which holds the IP address of the
visitor. If you really need to have it converted to a hostname, then just
resolve that ip-address (i.e. only do it, when you actually need the
information). If possible, then use offline processing.

--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/