The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
reverse proxy & user ips
Hello,
ive installed a setup with: 1 load balancer with cache (nginx) 1 http server (apache for php) 1 mysql server everything works great, good performance. But only one problem. I think the ip is not always correct sometimes at some users vbulletin shows the load balancer ip instead of the users ip: look at this "online.php": server2 is my load balancer... why is this happen? i also changed something in class core php: Code:
* 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); } |
#2
|
|||
|
|||
any help? if im missing something just say...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|