/ Zope / Apsis / Pound Mailing List / Archive / 2008 / 2008-07 / service unavailable

[ << ] [ >> ]

[ pound memory leak on x86_64 / Leo ... ] [ pound and errorcode 500 / Martin ... ]

service unavailable
"Eric S. Johansson" <esj(at)harvee.org>
2008-07-07 18:32:27 [ FULL ]
I'm using pound as a switch directing requests to different virtual machines. 
The older form request with a previous version of ubuntu worked fine and was 
completely trouble-free for a very long time but now after upgrading to 8.04, 
I've been unable to convert successfully to the new pound syntax.

What worked was:

UrlGroup        ".*"
HeadRequire     Host    ".*nelpag.harvee.org.*"
BackEnd         "nelpag.harvee.org,80,1"
EndGroup
UrlGroup        ".*"

What I thought was the equivalent fails

ListenHTTP
         address 192.168.25.30
         port 80

         ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
         xHTTP           3

         service
                 HeadRequire     "Host:  .*nelpag.harvee.org.*"
                 backend
                         #address                nelpag.harvee.org
                         address         192.168.25.32
                         port            80
                 end
         end
end

This feels like something basic that I am missing but I can't see it.


---eric

Re: [Pound Mailing List] service unavailable
Juerd Waalboer <juerd(at)convolution.nl>
2008-07-07 20:25:05 [ FULL ]
Eric S. Johansson skribis 2008-07-07 12:32 (-0400):[...]

Note that you have TWO spaces after the colon. This will require the
client to also send TWO spaces, which practically never happens.

Also, note that using .* at the end is meaningless but inefficient, and
using .* at the beginning is a potential security risk. It's unfortunate
that the Pound website suggests this syntax.

I suggest using:

    HeadRequire "^Host:[\t ]*nelpag\.harvee\.org$"[...]

Re: [Pound Mailing List] service unavailable
"Eric S. Johansson" <esj(at)harvee.org>
2008-07-08 06:29:48 [ FULL ]
Juerd Waalboer wrote:
[...]

worked wonderfully.  Thank you very very much.

MailBoxer