Newsgroups: mail-lists.delegate-en
[DeleGate-En] dynamically selected SERVER parameter
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
|