Re: Apache - reverse proxy with freebsd

From: Antonio Torres (antonio.torres_at_newspace.net.br)
Date: 07/27/04

  • Next message: Alex Melkomukov: "Re: chrooting Postfix+SASL+TLS"
    Date: Mon, 26 Jul 2004 20:01:03 -0300
    To: freebsd-isp@freebsd.org
    
    

    At 16:45 23/7/2004, you wrote:
    >Hi
    >
    >Currently I am running a standard setup with NameBased Virtualhosts with
    >HTTP 1.1 with a couple of Vhosts. Each has the same public IP.
    >
    >What I would like to do:
    >
    > - assign each vhosts a unique RFC1918 internal address
    > - do some nat / reverse proxy magic on the freebsd box (the
    >webserver itself)
    > - I want to use the same public IP
    >
    >Is there a solution for that? What I could not figure out, how the
    >reverse proxy could distinghish / split up the http 1.1 individual
    >domains to internal ips.
    >
    >Thanks for hints,
    >
    >Arie
    Let me see if I understood...

    You have as Apache(real IP) front-end to a several Apaches(RFC1918 IPs) in
    a DMZ ?

    You can use the standard Apache Virtual Hosts plus Proxy/Reverse Proxy:

    [in production httpd.conf fragment(domainnames changed)]
    <VirtualHost *>
         ServerName www.domain.com
         ServerAdmin webmaster@domain.com
             ProxyPass / http://192.168.0.171/
             ProxyPassReverse / http://192.168.0.171/

    </VirtualHost>

    <VirtualHost *>
            ServerName www.domain2.com
            ServerAdmin webmaster@domain2.com
            ProxyPass / http://192.168.0.172:81/
            ProxyPassReverse / http://192.168.0.172:81/
    </VirtualHost>

    As You see You can also change port-number...
    a read on a Apache Docs can explain in more details these examples...

    []s
    Antonio Torres
    antonio.torres@newspace.net.br

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Alex Melkomukov: "Re: chrooting Postfix+SASL+TLS"