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

Re: Proxypass Apache2



----- "Rafael Isturiz" <risturiz@gusl.org.ve> escribió:

> On Wednesday 04 February 2009 10:36:48 am Martí Cardús wrote:
> > Buenas
> >
> > Probaste con:
> > ProxyPass /foo http://bar.miweb.com/  ???
> >
> > Saludos!
> 
>      Casualmente eso es lo que quiero evitar :) ... Necesito quitar el
> 
> dominio "bar.miweb.com" y entonces que me funcione con www.miweb.com
> (tomando 
> en cuenta el /foo/ ) , con la salvedad que es una ip interna
> "10.0.0.x".
>      Actualmente me funciona asi:
> 
> Servername bar.miweb.com
> ProxyPass               / http://10.0.0.x/
> ProxyPassReverse        / http://10.0.0.x/
> 
>      Cuando llega la petición a ese subdominio el apache principal lo
> 
> direcciona hacia otra ip interna.
> 
> Gracias.
> Saludos.
> 
> 
> -- 
> a.k.a. pelox (Debian Powered) | JID:risturiz@gusl.org.ve
> Barquisimeto [VE] | LinuxUser [238188]
> http://pelox.gusl.org.ve
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org


Hola,

Bueno, el primer apache recibe www.miweb.com y quieres que www.miweb.com/foo vaya a otro pasando por proxy, verdad?

Pues prueba con
ProxyPass /foo http://IP_INTERNA/

(Nota que despues de ProxyPass pongo /foo, no solo /, puedes tener distintas reglas de ProxyPass, que / vaya a un sitio, /foo a otro y /bar a otro totalmente distinto)

Saludos


Reply to: