Re: iptables to redir subdomain to certain ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> So if a request comes in for www.domain.com, then I need that to be
> redirected to port 80(apache), that's OK, but when dl.domain.com pops
> in, then port 81(thttpd) would be the target. Can this be done with
> iptables and if so how?

Only if www.domain.com has a distinct ip address from dl.domain.com. If 
that does not hold true, use Apache's mod_rewrite magic, because then 
you are actually working on l7 rather than l3.


	-`J'
-- 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux