Simanta J Handique wrote:
> Is it possible to route all requests made to sitea.mynet.com to
> 194.168.0.111 and siteb.mynet.com to 192.168.0.112.
Thanx for such an intersting post.
AFAIK you can redirect port 80 requests to the internal ips.
In other words, any request to the static ip at www port
gets redirected to the internal IP.
But i'm not sure how to distinguish between the domain names,
since both point to the same static IP.
eg.
using iptables i would redirect requests to 203.1.2.3 port 80 to 192.168.0.1
$ ipatbles -t nat -A PREROUTING -i {static ip interface} -d 203.1.2.3 \
--dport www -j DNAT --to 192.168.0.1:80
Maybe you can try replacing the -d {ip} with -d {hostname}
--
arc_of_descent
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help