[Cialug] HTTP forwarding/proxying-ish something
Aaron Porter
atporter at gmail.com
Tue Jul 1 17:06:21 CDT 2008
On Sat, Jun 28, 2008 at 1:14 PM, Colin Burnett <cmlburnett at gmail.com> wrote:
> I want A:80 to serve foo.com but I want B:80 to server bar.com (based
> entirely on HTTP 1.1 host header), which necessitates Apache on A:80
> to understand bar.com and be able to forward requests to B:80. My
> requirement is both foo.com and bar.com resolve to the same public
> static IP since I don't want to pay for more than one :)
So, if I follow you right, something like this?
(requires mod_proxy)
<VirtualHost *>
ServerName www.foo.com
ServerAlias foo
ProxyPass / http://a.local.net:80/
ProxyPassReverse / http://a.local.net:80/
</VirtualHost>
<VirtualHost *>
ServerName www.bar.com
ServerAlias bar
ProxyPass / http://b.local.net:80/
ProxyPassReverse / http://b.local.net:80/
</VirtualHost>
More information about the Cialug
mailing list