Lets say I have two domains pointing to my IP:
first.com and second.com pointing to 127.0.0.1
When someone connects to first.com:6000 it should go to 127.0.0.1:6000. But when someone connects to second.com:6000 I need it to go to 127.0.0.1:6001.
What's the best way to achieve this? I'm using Ubuntu 10.10.