OK
Let me try to do this.
Thanks a lot
|-----------------------------+-------------------------------------------|
| Henrik Nordstrom | |
| <[EMAIL PROTECTED]> | |
| | To|
| 14/09/2004 08:08 | [EMAIL PROTECTED]|
| | alisco.g|
| | ob.mx |
| | cc|
| | Henrik |
| | Nordstro|
| | m |
| | <[EMAIL PROTECTED]|
| | id-cache|
| | .org>, |
| | Chris |
| | Perreaul|
| | t |
| | <Chris.P|
| | erreault|
| | @Wiremol|
| | d.com>, |
| | squid-us|
| | [EMAIL PROTECTED]|
| | d-cache.|
| | org |
| | Subject|
| | RE: |
| | [squid-u|
| | sers] |
| | X_forwar|
| | ded_for |
| | |
| | |
| | |
| | |
| | |
| | |
|-----------------------------+-------------------------------------------|
On Tue, 14 Sep 2004 [EMAIL PROTECTED] wrote:
> Well I have an application that needs 3 layers ,www,application server
and
> db server when some user tries to use the application all user`s requests
> go for squid and my application has to register users that got in and I
> need that squid lets users to pass with the source ip.
Do I understand your picture correctly
Internet Users -> Squid Reverse Proxy -> Application Server -> DB
For this no patching of Squid is required, all you need is to modify the
application to use the HTTP_X_FORWARDED_FOR CGI variable rather than
REMOTE_ADDR, with suitable cleanup (there may be more than one address in
X-Forwarded-For if the client request was forwarded via a chain of Squid
proxies).
There is patches to some web servers (Apache 1.3) to automate this, but
quite often this is not required.
Regards
Henrik