Afficher un message
Vieux 03/10/2006, 16h23   #4
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache and mod_proxy

On 2006-10-03, Zork <skills102@googlemail.com> wrote:
>> Connect using the domain name or directly with the IP?

> domain name


Then you could just fool the apps by having 'xyz.domain.com' in the
/etc/hosts file (pointing it to wathever you want).

> That's why I was thinking about a proxy server (which is the only thing
> which is configurable in that crappy legacy app).


Yes, if you use DNAT it doesn't matter what kind of apps it is, the
redirection is done at IP level.

> Knowing this would apache + mod_proxy be enough? I really need a simple
> solution, nothing complicated


Well, I tend to think that using a proxy just to do an ip redirection is
the complicated solution. I mean, a simple

iptables -t nat -A PREROUTING -d ip.of.the.server -j DNAT \
--to ip.of.the.newserver

should do it, but if you want to go for the full proxy, go ahead.

Davide


--
!07/11 PDP a ni deppart m'I !pleH
  Réponse avec citation
 
Page generated in 0,05382 seconds with 9 queries