[Shorewall-users] redirect virtual webservers

Tom Eastep teastep@shorewall.net
Mon, 29 Apr 2002 15:08:52 -0700 (Pacific Daylight Time)


On Tue, 30 Apr 2002, Magnus Stenman wrote:

> Tom Eastep wrote:
> >
> > On Mon, 29 Apr 2002, Magnus Stenman wrote:
> >
> > >
> > > Client looks up "www.virtual.server", gets a cname to your external IP.
> > > It connects (this gets forwarded to the internal web server) and
> > > tells the web server that it wants pages from "www.virtual.server"
> > > (the Host: www.virtual.server HTTP header)
> > >
> > > web server returns pages.
> > > >
> > > > What is needed for that? is this possible with shorewall, if so how?
> > >
> > > A reverse proxy or similar. Not included in shorewall AFAIK.
> > >
> >
> > Apache includes everything you need -- all Shorewall has to do is regular
> > port forwarding. Look at the Apache documentation:
>
> Not if you want to listen on one external IP for requests to multiple
> virtual (name based) servers, and forward these to separate boxes on
> the private net.
>
> For that you'll need a proxy of some kind.
>

True. Given that you have such a thing though, the Shorewall config part
is still trivial.

-Tom
--
Tom Eastep    \ Shorewall - iptables made easy
AIM: tmeastep  \ http://www.shorewall.net
ICQ: #60745924  \ teastep@shorewall.net