Article delegate-en/4348 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] dynamically selected SERVER parameter
22 Jan 2009 17:55:29 GMT Jens-Erik Hansen <puicqbdyi-h3lizqrng43r.ml@ml.delegate.org>


Hello,

I try to setup delegate as a reverse proxy for http. The server
parameter should be dynamically selected by the destination host.

In other words: the hosts "intern1.foo.org" and "intern2.foo.org" both
resolve into "192.168.8.2". I would like to achieve that I connect to
"192.168.1.2:9033" if I open http://intern1.foo.org.

Therefor I started delegate like this:

delegated  -P192.168.8.2 PERMIT="http:*:*" REACHABLE="*" \
SERVER="http://192.168.1.2:9033/:-:dst={intern1.foo.org}" \
SERVER="http://192.168.1.3:9034/:-:dst={intern2.foo.org}"

Now if I open http://intern1.foo.org I get the error:

gethostbyname(dst={intern1.foo.org}) unknown[0.00s]
ERROR SERVER.via[1] dst={intern1.foo.org} ? unknown

even though "intern1.foo.org" is resolvable by the host and delegate
comes back with http://intern1.foo.org/-/.

Can sameone on the list point me to the right direction please?

Thank you,
Jens

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V