[users@httpd] JKMount based on URL query parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to assign requests to specific tomcat workers based on query strings in the URL.

For example,

    http://localhost/abc/Team?name=xyz&location=NY should be assigned to worker1 and 
    http://localhost/abc/Team?name=xyz&location=NJ should be assigned to worker2

Is this possible? I tried the following, but it doesn't work.

    <LocationMatch /abc/Team*location=NY*>
       JkMount worker1
    </LocationMatch>

    <LocationMatch /abc/Team*location=NJ*>
       JkMount worker2
    </LocationMatch>

The LocationMatch directive takes a regular expression as an argument, but seem to match only the path, and not the query parameters. If the context is different, then the mapping is straightforward, but how to distinguish based on query strings.

Any ideas on how this can be achieved?

Thanks,
  -Arun

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux