/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-03 / HeadRequire Host puzzle

[ << ] [ >> ]

[ IPv6 / Mattias Nordstrom <matta(at)ftlight.net&... ] [ Release candidate / Robert Segall ... ]

HeadRequire Host puzzle
"Robin Collins" <Robin.Collins(at)elateral.com>
2004-03-11 17:23:13 [ FULL ]
Hello

Having got a basic Pound up and running I now want to make it do it's
stuff.

So far, what works is

UrlGroup ".*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.1,80,1
EndGroup

What we need to do is this:-

www,mycompany.com ------>10.0.0.1
www.mycompany.com/nest ------>10.0.0.2
www.mycompany.com/work------>10.0.0.3
www.mycompany.com/play------>10.0.0.4

and this is where I get lost. I've tried using
HeadRequire Host ".*www.mycompany.com/nest.*"
with various permutations after the / and I just get a 503 error.

By changing the backend address I can make the same bare header work with
any of the servers, it's only when I try to add on the /xxxx it goes all
odd.

I've tried using the UrlGroup entry like a <Location> as in Apache i.e
UrlGroup "./net" and permutations, but again no luck.

The backend servers are all running IIS and I have created a virtual
directory that points back to the normal home page for the site using the
/nnnn bits referred to but with no success.

As I see it all we're trying to do is create a link that makes Pound say
"when I get www.mycompany.com/nest in a header I'll just pass the traffic
to the backend server".

Sorry to be a pain, and I know the answer has to be simple - but I just
cannot work out what it is. Any advice gratefully rec'd

Robin

e-solutions for marketing
http://www.elateral.com/uk

Elateral Limited, Crosby Way, Farnham, GU9 7XX, UK
Tel. +44 (0)1252 740740
Fax. +44 (0)1252 740741
***********************************************************************
This e-mail is confidential and may be privileged.  It may be read,
copied and used only by the intended recipient.  If you have received
it in error please contact the sender immediately by return e-mail or
by telephone. Please then delete the e-mail and do not disclose its
contents to any person.  We believe, but do not warrant, that this
e-mail and any attachments are virus free.  You should take full
responsibility for virus checking.  Elateral reserves the right to
monitor all e-mail communications through its internal and external
networks.  The opinions or ideas expressed above belong to their
author and do not necessarily reflect the views of the Elateral Group.
***********************************************************************

RE: HeadRequire Host puzzle
John D <jwdavid(at)ibizvision.com>
2004-03-11 18:14:09 [ FULL ]
Robin,

You can do this by using multiple UrlGroup directives.  For example:

UrlGroup "/nest.*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.2,80,1
EndGroup

UrlGroup "/work.*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.3,80,1
EndGroup

UrlGroup "/paly.*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.4,80,1
EndGroup

UrlGroup ".*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.1,80,1
EndGroup

If all your requests are comming in for the same host (www.mycompany.com) you
can leave the HeadRequire directives off completely.

John D.

********** Original Email *********
** To:   pound(at)apsis.ch
** From: "Robin Collins" <Robin.Collins(at)elateral.com>
** Date: Thu, 11 Mar 2004 16:23:13 +0000
**********

Hello

Having got a basic Pound up and running I now want to make it do it's
stuff.

So far, what works is

UrlGroup ".*"
HeadRequire Host ".*www.mycompany.com.*"
BackEnd 10.0.0.1,80,1
EndGroup

What we need to do is this:-

www,mycompany.com ------>10.0.0.1
www.mycompany.com/nest ------>10.0.0.2
www.mycompany.com/work------>10.0.0.3
www.mycompany.com/play------>10.0.0.4

and this is where I get lost. I've tried using
HeadRequire Host ".*www.mycompany.com/nest.*"
with various permutations after the / and I just get a 503 error.

By changing the backend address I can make the same bare header work with
any of the servers, it's only when I try to add on the /xxxx it goes all
odd.

I've tried using the UrlGroup entry like a <Location> as in Apache i.e
UrlGroup "./net" and permutations, but again no luck.

The backend servers are all running IIS and I have created a virtual
directory that points back to the normal home page for the site using the
/nnnn bits referred to but with no success.

As I see it all we're trying to do is create a link that makes Pound say
"when I get www.mycompany.com/nest in a header I'll just pass the traffic
to the backend server".

Sorry to be a pain, and I know the answer has to be simple - but I just
cannot work out what it is. Any advice gratefully rec'd

Robin

e-solutions for marketing
http://www.elateral.com/uk

Elateral Limited, Crosby Way, Farnham, GU9 7XX, UK
Tel. +44 (0)1252 740740
Fax. +44 (0)1252 740741
***********************************************************************
This e-mail is confidential and may be privileged.  It may be read,
copied and used only by the intended recipient.  If you have received
it in error please contact the sender immediately by return e-mail or
by telephone. Please then delete the e-mail and do not disclose its
contents to any person.  We believe, but do not warrant, that this
e-mail and any attachments are virus free.  You should take full
responsibility for virus checking.  Elateral reserves the right to
monitor all e-mail communications through its internal and external
networks.  The opinions or ideas expressed above belong to their
author and do not necessarily reflect the views of the Elateral Group.
***********************************************************************

MailBoxer