|
Home > Archive > Perlbal > October 2007 > Perlbal as a vhost proxy
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Perlbal as a vhost proxy
|
|
| Matthew Pitts 2007-10-04, 1:12 pm |
| Apologizes if this has been discussed prior, I scanned the archives as
best I could.
I need to setup a reverse proxy entry point on a single IP address that
will proxy connections to backend systems based on the HTTP1.1 host
header.
Essentially, I'm trying to use a single public IP as a entry point to
sites that are not hosted on the same backend machine. To accomplish
this Perlbal would need to be able to do DNS lookups of the HOST header
and then reverse proxy to the result internal IP.
I've done this in the past with Squid, but I'm wondering if I can
accomplish it with Perlbal instead.
I'm very new to Perlbal, but if this isn't something it does
out-of-the-box, but can be implemented by way of a plugin I'd be
interested in writing it if someone can give me some pointers.
TIA
--
Matthew W. Pitts
Software Engineer
mpitts@a3its.com
336.202.3913 (mobile)
A3 IT Solutions, LLC
www.a3its.com
| |
| Jeremy Dunck 2007-10-04, 1:12 pm |
| On 10/4/07, Matthew Pitts <mpitts@a3its.com> wrote:
> Essentially, I'm trying to use a single public IP as a entry point to
> sites that are not hosted on the same backend machine. To accomplish
> this Perlbal would need to be able to do DNS lookups of the HOST header
> and then reverse proxy to the result internal IP.
There is a vhost plugin, but it doesn't do DNS lookups. It relies on
a list of servers. The list of servers can be changed at runtime w/o
restarting perlbal, though.
http://code.sixapart.com/svn/perlba...lugin/Vhosts.pm
http://code.sixapart.com/svn/perlba...onfig-guide.txt
| |
| Matthew Pitts 2007-10-04, 1:12 pm |
| On Thu, 2007-10-04 at 09:36 -0500, Jeremy Dunck wrote:
> There is a vhost plugin, but it doesn't do DNS lookups. It relies on
> a list of servers. The list of servers can be changed at runtime w/o
> restarting perlbal, though.
This might not be a bad option, actually. Probably easier than getting
DNS updates pushed through my IT group.
Aside from reading the code, is there any documentation of the vhost
config syntax?
Thanks for the quick response.
--
Matthew W. Pitts
Software Engineer
mpitts@a3its.com
336.202.3913 (mobile)
A3 IT Solutions, LLC
www.a3its.com
| |
| Brett Hoerner 2007-10-04, 1:12 pm |
| On Oct 4, 2007, at Oct4, 9:51:20AM, Matthew Pitts wrote:
> Aside from reading the code, is there any documentation of the vhost
> config syntax?
Your best bet is probably in,
perlbal/conf/virtual-hosts.conf (example of vhost conf)
perlbal/doc/config-guide.txt (description of normal perlbal conf
directives)
Brett
| |
| Matthew Pitts 2007-10-04, 1:12 pm |
| On Thu, 2007-10-04 at 09:59 -0500, Brett Hoerner wrote:
> perlbal/conf/virtual-hosts.conf (example of vhost conf)
> perlbal/doc/config-guide.txt (description of normal perlbal conf
> directives)
Thanks much! I guess I should have actually looked around the conf
directory.
Thanks again.
--
Matthew W. Pitts
Software Engineer
mpitts@a3its.com
336.202.3913 (mobile)
A3 IT Solutions, LLC
www.a3its.com
|
|
|
|
|