I'm trying to set up a test environment for a mobile app. I have a machine acting as a gateway and providing dhcp on 192.168.10.0/24, and serving pages from apache.How would I set up iptables rules so that any traffic coming from 192.168.10.0/24 gets redirected to my vhost by url- so url1 goes to host1, url2 goes to vhost2 and default everything else to vhost0?I am only using http now, maybe i will add https later if everything else works.
iptables redirect via url to localhost vhost
iptables;http