Cliff Wells <[EMAIL PROTECTED]> writes:
> One thing that I think both Catwalk and Identity are probably missing is proxy
> support. If you just use the REMOTE_ADDR environment variable, all proxied
> requests appear to come from 127.0.0.1 rather than the real remote IP. What I
> usually do is check to see if the environment variable HTTP_X_FORWARDED_FOR is
> set and if so, use that, otherwise use REMOTE_ADDR:
>
> remote_addr = os.environ.get('HTTP_X_FORWARDED_FOR,
> os.environ.get('REMOTE_ADDR', ''))
Indeed. I haven't thought about it. And I use Apache as a proxy to my TG
websites...
--
Jorge Godoy <[EMAIL PROTECTED]>