httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Govindarajulu, Arun" <arun.govindaraj...@hp.com>
Subject [users@httpd] JKMount based on URL query parameters
Date Thu, 05 May 2005 01:04:07 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message