Hi,

--- In [email protected], "rajesh k" <rajeshkod...@...> wrote:
>
> Hi,
> 
> I have a specific requirement that ther should be one server that is
> facing the external world. with ip xx.xx.xx.xx and mapped to dns hosts
> 1.server.com <http://1.server.com/> , 2.server.com
> <http://2.server.com/>  and 3.server.com <http://3.server.com/>

>From what I can understand, you require a proxy (more specifically called 
>reverse proxy [1]). Something on the lines of nginx or lighthttpd or even 
>Apache with mod_proxy.

[1] http://en.wikipedia.org/wiki/Reverse_proxy

> 
> when the server receives request for 1.server.com:80
> <http://1.server.com/>  then the request has to be sent to internal
> server 1 on privet ip example 192.168.0.1:80
> 
> when server receives request for 2.server.com <http://2.server.com/> :80
> then the request has to be sent to 2 on private ip 192.168.0.2:80
> 
> so on
> 
> So how does iptables recognize hostname for port translation instead of
> ip as the external server has the same ip.
> 
> Can this be attained by iptables or should we use any other like apache.

iptables seems to be an overkill for this because it has to be configured both 
ways. Most reverse proxies will get this done easily.

--
Cheers
Theju

Reply via email to