![]() |
Proxy Session (Squid) Hack
Has anyone come up with a hack to make Vbull work properly when you are using squid for cacheing? I was thinking of trying to do something like this:
From original admin/session.php PHP Code:
PHP Code:
Squid always reports 127.0.0.1 for the REMOTE_ADDR. There are times when we bypass squid so that I would not want to change it to a permanent setting. Making these changes in the functions.php or global.php would be ok by me also but I could not find what I thought was the correct spot.. Thanks for any help. |
Code:
if (getenv(HTTP_X_FORWARDED_FOR)){ |
Thats the code you would use to verify if the HTTP_X_FORWARD_FOR is there and useable? Could I just suplement that code into the session code and then use $IP or whatever i call it when i do the $REMOTE_ADDR=substr($REMOTE_ADDR,0,50); part of the code or are you recommending this be put in the global or functions php files?
Thanks |
yea I want to know too!! ???
|
PHP Code:
|
Vbulletin 2.2.9 is released and I do not see any mention of this in the changed files. Has this been included and if it has not what files do I need to make this change in to make this work? We are getting killed with users login in as some one else because of our forced use of squid to help with the load.
Thanks.. Quote:
|
Anyone have any ideas regarding my question on where exactly to add this?
|
All times are GMT. The time now is 03:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|