On 07/17/02(05:24) you jetteb <email@example.com> wrote
|I use Delegate as a reverse proxy server (Web client -> HTTP proxy ->
|Web server) and
|there's some ASP scripts that needed the IP of the client. Since the
|proxy was used,
|the Web server as its IP adress of the PROXY in REMOTE_ADDR variable.
If "REMOTE_ADDR" is like the one in CGI, it is got from the
peer address of the TCP/IP connection with the client, which
is the host of proxy server in your case, and is not set by
client side by principle.
|Is it possible to set a new variable in the PROXY to send to the Web
|server (the ASP will be able to use it) ? Is it possible to do this by
|scripting/filter or by using some config parameters?
You can send the IP address of the client of your DeleGate
to a server in HTTP request header. For example, to send it
like "X-Forward-For: 192.168.1.1" do as follows:
@ @ Yutaka Sato <firstname.lastname@example.org> http://www.delegate.org/y.sato/
( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller