[dokuwiki] Re: Dokuwiki and X-forwarded-for?

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 08 Dec 2007 23:19:09 +0100

Yann writes:

« HTML content follows »
Hello - it appears to me that dokuwiki doesn't support the X-Forwarded-For HTTP directive. With a load balancer in front of it, all visitors seem to have the same IP address . Has someone already written a plugin/modification that makes it support it?

DokuWiki does use the X-Forwarded-For header. See the clientIP() function:
http://dev.splitbrain.org/reference/dokuwiki/inc/common.php.source.html#l529

When a single IP is needed, the first non-private IP is used.

Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: