/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-07 / three virtual hosts on same IP (reverse proxy)

[ << ] [ >> ]

[ DSA certificates / Clinton Gormley ... ] [ e501 bad request "CONNECT xxx.xxx.xxx.xxx ... ]

three virtual hosts on same IP (reverse proxy)
Chris Henderson <henders254(at)gmail.com>
2009-07-31 04:03:30 [ FULL ]
I have three virtual hosts on the same IP and I would like to setup
reverse proxy for them. The first one works fine, not sure how to
setup the other two.

The following are my internal servers:

http://marketing.company.tld:30000
------> 192.168.25.25

http://services.company.tld:28978
------> 192.168.25.25

http://helpdesk.company.tld:39485
------> 192.168.25.25

The following is my Pound server (which has public IP and publicly
listed forward DNS entry):

http://pound.company.tld

My pound.cfg:

User "nobody"
Group "nobody"
Control "/var/run/pound/ctl_socket"

# Main listening ports
ListenHTTP
   Address 0.0.0.0
   Port    80
   xHTTP   1
End

Service
              HeadRequire "Host: .*pound.company.tld.*"
               BackEnd
                   Address 192.168.25.25
                   Port 30000
               End
End

Thanks.

Re: [Pound Mailing List] three virtual hosts on same IP (reverse proxy)
Andreas Schipplock <andreas(at)schipplock.de>
2009-07-31 08:33:10 [ FULL ]
Morning,

1.) create the a-records "marketing", "services" and "helpdesk" for
company.tld and "point" them to the public IP (like
pound.company.tld).
2.) and then...

Service
             HeadRequire "Host: .*marketing.company.tld.*"
              BackEnd
                  Address 192.168.25.25
                  Port 30000
              End
End

Service
             HeadRequire "Host: .*services.company.tld.*"
              BackEnd
                  Address 192.168.25.25
                  Port 28978
              End
End

and so on...that's how I would do it. I believe it's the proper way or
I completely misunderstood you :).

Cheers,
Andreas.

On Fri, Jul 31, 2009 at 4:03 AM, Chris Henderson<henders254(at)gmail.com>
wrote:[...]

[...]

Re: [Pound Mailing List] three virtual hosts on same IP (reverse proxy)
Chris Henderson <henders254(at)gmail.com>
2009-07-31 16:38:57 [ FULL ]
On Fri, Jul 31, 2009 at 4:33 PM, Andreas
Schipplock<andreas(at)schipplock.de> wrote:[...]

But there is already A records: marketing.company.tld,
services.company.tld and helpdesk.company.tld point to 192.168.25.25.

MailBoxer