The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbulletin and squid + proxy headers
Hi there -
We are using squid as a reverse proxy and this causes obvious issues when a user locks themselves out because all requests come from the same server. Squid is sending x-forwarded for but someone familiar with squid said i need to configure vbulletin to trust these headers from the proxy...that by default it does not. However, I can't find anything in the manual that references this (at least by using search). I am running the latest version of vbulletin. Thanks, Rich |
#2
|
|||
|
|||
You must make sure that the proxy server forwards the original IP address and not all connection are made with the IP of the proxy server.
|
#3
|
|||
|
|||
My proxy server is forwarding the original IP address - it doesn't look like vbulletin is recognizing this.
--------------- Added [DATE]1224877619[/DATE] at [TIME]1224877619[/TIME] --------------- I wound up modifying this line in class_core.php. $alt_ip = $_SERVER['REMOTE_ADDR']; to $alt_ip = $_SERVER['HTTP_X_FORWARDED_FOR']; in order to force the alt_ip as the http_x_forwarded_for address. For some reason the default conditional logic did not seem to be getting the job done. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|