httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mraible <>
Subject [users@httpd] Is it possible for Apache to randomly select different URLs to serve up?
Date Wed, 18 Apr 2007 20:03:39 GMT

Is it possible for Apache to randomly select different URLs to serve up?  For

User1 ->
User2 ->
User3 ->

And after a certain point, start over again?  I'm not really looking for
random, ordered would work.

For more information, please read more below.




I have configured Apache with mod_jk and mod_rewrite to forward to different
applications deployed in Tomcat based on a parameter.  For example: --> tomcat/webapps/app1 --> tomcat/webapps/app2

If this parameter is not in the URL, the default Tomcat application
(tomcat/webapps/ROOT) will be served up.

The reason I'm doing this for A/B Testing - so a new app can be deployed
with small changed and users will get routed to it. The reason for the "v"
parameter is to ensure users are routed to a particular app when they pass
URLs around to friends and such. In addition to a "v" parameter, I'm looking
for a "v" cookie and routing appropriately. 

This all works great and I'm happy with my current setup. If you need more
details, please see my blog entry[1] where I documented my experience.

For those users who come in w/o a "v" parameter or "v" cookie, I'd like to
evenly distribute them to the different version of the site. I'm not so
concerned about the "evenly" aspect, but I would like to send users to
different applications.  Is this something that's possible with Apache or
should I do this in the ROOT webapp in Tomcat?

View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message