Apache - reverse proxy with freebsd
Antonio Torres
antonio.torres at newspace.net.br
Mon Jul 26 16:01:33 PDT 2004
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 at domain.com
ProxyPass / http://192.168.0.171/
ProxyPassReverse / http://192.168.0.171/
</VirtualHost>
<VirtualHost *>
ServerName www.domain2.com
ServerAdmin webmaster at 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 at newspace.net.br
More information about the freebsd-isp
mailing list