In this case -s is no useful because resolving host a and host b return the same address, and the 1st match win.
You can use APACHE name virtual host to handle this correctly.
G.
Ummm, what is the -s parameter for then?
iptables -t nat -A PREROUTING -p tcp -s <hostname A> --dport 80 -j
REDIRECT --to-destination 192.168.1.1:80
iptables -t nat -A PREROUTING -p tcp -s <hostname B> --dport 80 -j
REDIRECT --to-destination 192.168.1.2:80
Or am I missing something?
Ray