Hi,

I'm trying to use Pound to direct some URLs (site vs user directories) to different backend servers.

Basically, this is my configuration:

  Service
    HeadRequire "^Host:\s*(www\.)?sebster\.com"
    URL "/~"
    BackEnd
      Address 192.168.1.10
      Port 80
    End
  End
  Service
    HeadRequire "^Host:\s*(www\.)?sebster\.com"
    URL "/[^~]"
    BackEnd
      Address 192.168.1.11
      Port 80
    End
  End

There are two problems I'm having. First of all, if I read the documentation correctly, to stop ~user requests from going to the other server when the first server is down, I've got to match the complement of the /~ URL in the other service. This is quite annoying with regular expressions, and was wondering if there was some other way to go about it. Things I can come up with (but do not find in the docs) are:

1) complements
URL ! "/~" (to match the complement of a regex)

2) mutually exclusive services, of which only one can match, something like:

ServiceList
   Exclusive
   Service
     ...
   End
   Service
     ...
   End
End

If you treat ServiceList as a Service itself you could make really fancy configurations by nesting.

Maybe there's already some easy way to do this however, if so, I'd love to hear it.

The other problem I'm having is that the pattern:

URL "/[^~]"

is not working. It seems to me it should be the complement of the pattern "^~" but somehow it isn't... Anybody know what I'm doing wrong here?

Many thanks,
Sebastiaan




--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to