The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
Hi there,
I use a software load balancing but the idea is the same. You have to edit class_core.php and change from: /** * Fetches the IP address of the current visitor * * @return string */ function fetch_ip() { return $_SERVER['REMOTE_ADDR']; } To: /** * Fetches the IP address of the current visitor * * @return string */ function fetch_ip() { return (getenv(HTTP_X_FORWARDED_FOR)) ? getenv(HTTP_X_FORWARDED_FOR) : getenv(REMOTE_ADDR); } Also don't forget to edit your lighttpd configuration (lighttpd.conf) in order to log the user IP address. At this file you need to replace %h with %{X-Forwarded-For}i on the accesslog.format line. Example: From: accesslog.format = "%h To: accesslog.format = "%{X-Forwarded-For}i Cheers, Gabriel. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|