Jump to content

Code improvement suggestion

Featured Replies

Posted

Hi,


Our forums are on a size that requires us to use several servers, we are also using an internal apache-proxy system, but here we get a little problem.

The server variable $_SERVER['REMOTE_ADDR'] returns the IP adress of the web server (since apache runs 2 instanses at once), but the real variable is $_SERVER['HTTP_X_FORWARDED_FOR'];


Perhaps something to include in the code somewhere, because before we fixed it, the sessions table was truncated all the time, and users logged on, total users online etc did not work.

But hey, the load went straight up :)

Isn't Security & Privacy -> Enable X_FORWARDED_FOR IP matching? option meant exactly for that?


:blush:

Thanks for that :)

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.