Re: URL forwarding

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: URL forwarding
From: "Dr. Volker Jaenisch" <volker.jaenisch@xxxxxxxxx>
Date: Sun, 27 May 2007 02:00:21 +0200
Hi Konstantin!
Konstantin Ivanov schrieb:

Is it possible based on the URL address for the load balancer to forward the requests to a particular real servers. What I need to do is for example for a domain name just server1 and server2 will respond, and for server 1 and server3 will respond. I tried looking at UltraMonkey-L7 project but you can match only the file names in the URL like this:
l7vsadm -A -t -m url --pattern-match '*.html' -s rr
l7vsadm -a -t -m url --pattern-match '*.html' -r
Quoting URL module (url) option
--pattern-match character-string (module-args)
Defines the URL character string that should not be allowed to pass through 
till the real server.
This can take 127 english characters. Shell wildcard notation is allowed. (The "*" can match zero or more arbitrary characters --> Match any string
The "?" can match any single character --> Match any single character)
The character-string should be enclosed with ' (Single Quote character)
If complete matching or comparision is required for URL, then * might be needed.
Example: --pattern-match '*/index.html*'

I never used l7vsadm but there is nowhere written that the matching string operates only on the path portion of the URL.

Have you tried e.g.

l7vsadm -a -t -m url --pattern-match '*' -r
l7vsadm -a -t -m url --pattern-match '**' -r

Best Regards,


  inqbus it-consulting      +49 ( 341 )  5643800
  Dr.  Volker Jaenisch
  Herloßsohnstr.    12      0 4 1 5 5    Leipzig
  N  O  T -  F Ä L L E      +49 ( 170 )  3113748

<Prev in Thread] Current Thread [Next in Thread>