/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-08 / Pound Virtual Host / IP address question

[ << ] [ >> ]

[ Securing specific sections of a website with SSL ... ] [ Pound and Gsoap / Gaetan OFFREDO ... ]

Pound Virtual Host / IP address question
"Chris Willis" <chris(at)castellan.net>
2005-08-21 23:25:13 [ FULL ]
I have 2 web servers, with the following 2 websites hosted on each
server:

Website		Web Server 1	Web Server 2
-------		-------------	-------------
Website1.com	192.168.3.100	192.168.3.200
Website2.com	192.168.3.101	192.168.3.201

I have setup Listen HTTP(S)directives for pound (thanks for the previous
help everyone!), but am not sure how to format the URL config
directives.   What string would allow me to forward the websites to the
right IP addresses on each web server?

Here is what I have tried:

ListenHTTP 1.2.3.4,80
ListenHTTP 1.2.3.5,80
ListenHTTPS 1.2.3.4,443 /usr/local/etc/website1_com.pem
ALL:!ADH:EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
ListenHTTPS 1.2.3.5,443 /usr/local/etc/website2_com.pem
ALL:!ADH:EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

UrlGroup    ".*"
HeadRequire Host    ".*www.website1.com.*"
BackEnd     192.168.3.100,80,1
BackEnd	  192.168.3.200,80,1
EndGroup

UrlGroup    ".*"
HeadRequire Host    ".*www.website2.com.*"
BackEnd     192.168.3.101,80,1
BackEnd     192.168.3.201,80,1
EndGroup

It works perfect when there is only the basic URL config, but chokes
when I try the URL config directives above.  Would someone be willing to
help?

Basic URL config:
UrlGroup    ".*"
BackEnd     192.168.3.100,80,1
BackEnd     192.168.3.200,80,1
EndGroup


 
Chris Willis

Re: [Pound Mailing List] Pound Virtual Host / IP address question
Lorenzo Grio <grio(at)katamail.com>
2005-08-22 09:57:13 [ FULL ]
The syntax is wrong, try this:

HeadRequire Host    ".*.www.website2.com.*"

In your configuration there was a dot missing.

Bye,
Lorenzo.

Re: [Pound Mailing List] Pound Virtual Host / IP address question
Robert Segall <roseg(at)apsis.ch>
2005-08-22 15:21:20 [ FULL ]
On Sun, 21 Aug 2005 14:25:13 -0700 "Chris Willis"
<chris(at)castellan.net>
wrote:
[...]

You'll need to be more specific: "chokes" is not really that
descriptive. What do you see?

BTW - your config looks fine to me. I assume the cypher is on the same
line as the ListenHTTPS. You may want to try dropping the www in the
HeadRequire pattern.[...]

Re: [Pound Mailing List] Pound Virtual Host / IP address question
Robert Segall <roseg(at)apsis.ch>
2005-08-22 15:23:14 [ FULL ]
On Mon, 22 Aug 2005 09:57:13 +0200 Lorenzo Grio <grio(at)katamail.com>
wrote:
[...]

Not really. For our purpose ".*" includes ".*.". Zero or more
occurrences - which is what the "*" means - includes one. Your pattern
could be written ".+".[...]

MailBoxer