|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2005
/
2005-05
/
Pound config file
[
New to *Pound*, looking for a simple config / ... ]
[
ANNOUNCE: Pound - reverse proxy and load balancer ... ]
Pound config file
"Dean Maunder" <deanmaunder(at)telstra.com> |
2005-05-05 04:06:01 |
[ FULL ]
|
Hi,
I have a config file which looks somewhat like this:
ListenHTTP 192.168.123.15,80
ListenHTTPS 192.168.123.15,443 /etc/pound/pound.pem
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
LogLevel 0
Err500 "/etc/pound/error.html"
Err501 "/etc/pound/error.html"
Err503 "/etc/pound/error.html"
Err414 "/etc/pound/error.html"
Alive 5
UrlGroup ".*"
HeadRequire Host ".*sitea.mysite.com.*"
BackEnd 192.168.123.7,80,1
BackEnd 192.168.123.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*siteb.mysite.com.*"
BackEnd 192.168.120.7,80,1
BackEnd 192.168.120.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitec.mysite.com.*"
BackEnd 192.168.120.7,80,1
BackEnd 192.168.120.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sited.mysite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitee.mysite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitea.myothersite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*siteb.myothersite.com.*"
BackEnd 192.168.220.199,80,1
EndGroup
I would like to clean this up somewhat, so I would like to be able to group
sitea,b, and c into one url group as they use the same servers, but then
have sites d and e in another group, also to group the sites in
myothersite.com into a seperate url group. After reading the man page, I
attempted the following:
UrlGroup ".*mysite.com"
HeadRequire Host ".*sitea.*"
Backend etc
HeadRequire Host ".*sited.*"
Backend etc
But it didnt seem to work
Can anyone suggest a good config file for the above sites?
Thanks a million.
Dean.
|
|
|
RE: Pound config file
"John D" <jwdavid(at)ibizvision.com> |
2005-05-05 18:52:24 |
[ FULL ]
|
Howdy,
Based on what you are saying it sounds like you just need something like the
following:
----------------------------------------
UrlGroup ".*"
HeadRequire Host ".*site[abc].mysite.com.*"
BackEnd 192.168.123.7,80,1
BackEnd 192.168.123.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*site[de].mysite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitea.myothersite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*siteb.myothersite.com.*"
BackEnd 192.168.220.199,80,1
EndGroup
----------------------------------------
(You can put the d,e and the sitea.myothersite.com into the same group, but the
resulting RegEx might be more confusing then it is worth.)
From what I understand, putting more then one HeadRequire per UrlGroup will
mean that they all have to match for it to use that group, which I don't think
is what you want. The location of the HeadRequire directives in relation to the
BackEnd directives doesn't mean anything, they are all used all the time within
that group.
Hope this helps.
John D.
********** Original Email *********
** To: <pound(at)apsis.ch>
** From: "Dean Maunder" <deanmaunder(at)telstra.com>
** Date: Thu, 5 May 2005 12:06:01 +1000
**********
Hi,
I have a config file which looks somewhat like this:
ListenHTTP 192.168.123.15,80
ListenHTTPS 192.168.123.15,443 /etc/pound/pound.pem
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
LogLevel 0
Err500 "/etc/pound/error.html"
Err501 "/etc/pound/error.html"
Err503 "/etc/pound/error.html"
Err414 "/etc/pound/error.html"
Alive 5
UrlGroup ".*"
HeadRequire Host ".*sitea.mysite.com.*"
BackEnd 192.168.123.7,80,1
BackEnd 192.168.123.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*siteb.mysite.com.*"
BackEnd 192.168.120.7,80,1
BackEnd 192.168.120.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitec.mysite.com.*"
BackEnd 192.168.120.7,80,1
BackEnd 192.168.120.5,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sited.mysite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitee.mysite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*sitea.myothersite.com.*"
BackEnd 192.168.220.21,80,1
EndGroup
UrlGroup ".*"
HeadRequire Host ".*siteb.myothersite.com.*"
BackEnd 192.168.220.199,80,1
EndGroup
I would like to clean this up somewhat, so I would like to be able to group
sitea,b, and c into one url group as they use the same servers, but then
have sites d and e in another group, also to group the sites in
myothersite.com into a seperate url group. After reading the man page, I
attempted the following:
UrlGroup ".*mysite.com"
HeadRequire Host ".*sitea.*"
Backend etc
HeadRequire Host ".*sited.*"
Backend etc
But it didnt seem to work
Can anyone suggest a good config file for the above sites?
Thanks a million.
Dean.
|
|
|
|