Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 65400 invoked from network); 23 Jun 2008 18:36:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 18:36:03 -0000 Received: (qmail 62150 invoked by uid 500); 23 Jun 2008 18:35:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61670 invoked by uid 500); 23 Jun 2008 18:35:53 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 61659 invoked by uid 99); 23 Jun 2008 18:35:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 11:35:53 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rich.schu@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 18:35:04 +0000 Received: by py-out-1112.google.com with SMTP id d37so1365989pye.29 for ; Mon, 23 Jun 2008 11:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=1b4Krml1Irf/HwBi8q9N5PvUKZarFDU5mAPU+ei9KZo=; b=Z3pV8qtFvYutpcO/lfB4BEWcveMntoU0I3vVklAMoRutaCeZJntVB+X3XhvrlCkgK2 mfUUHMa0SWYy3o6sXC6Bt7YZevOQXmisvDXaS9qa8BvAs+0GpJkhnPqE65d05TjcnKAK 9oCkwznh/agtAzh7zzmYLfRis8K4/N5eYjWwY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Shg65RYYVymUbs1DJUQ09F2pUEgqdeV/Ovwz9m6oyqtT/s99YVV0yu84pwGAfPxRdp gALk2i9eol7czpHq1xNw6H4Sqn190848bMGM/Ef9DzeFyu7TqatsbC5f1Dum79pezMER iPYLuFuI3zsfwEVcCxAvLcWY8K8uZmlttfzcA= Received: by 10.142.147.20 with SMTP id u20mr4283471wfd.47.1214246122148; Mon, 23 Jun 2008 11:35:22 -0700 (PDT) Received: by 10.150.147.6 with HTTP; Mon, 23 Jun 2008 11:35:22 -0700 (PDT) Message-ID: Date: Mon, 23 Jun 2008 11:35:22 -0700 From: "Rich Schumacher" To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29607_29476451.1214246122112" X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Cookie based AB testing with different document roots ------=_Part_29607_29476451.1214246122112 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey all, Here is my dilemma: I have several web servers that each contain two versions of our site (skin is different, URLs are the same) located in different document roots, /var/www/a.example.com and /var/www/b.example.com. The marketing department wants to compare the versions to see which is more effective for a number of metrics. I need to direct 90% of traffic to the "a" doc root and 10% to the "b" doc root. This needs to be done via long-expire cookies since I want users to get the same version of the site they were originally served. So, essentially, I need the Apache balancer to load balance requests to the web servers as well as drop a version cookie if it does not already exist. If the Apache balancer encounters a version cookie that was previously set, it should just direct traffic normally. Then the request is passed from the balancer to the webserver and I can rewrite the document root with mod_rewrite based on the cookie set by the balancer. Is this possible using mod_proxy_balancer, or am I on the wrong path. Maybe there is an easier way to do this? I've tried searching this list, reading the docs, and Googling but I can't seem to find anything that will satisfy these requirements. I know that this would be much easier to just have separate boxes for each version of the site; trust me, I've tried suggesting that, but this is currently not an option. Thanks in advance, Rich Schumacher ------=_Part_29607_29476451.1214246122112 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline  Hey all,

Here is my dilemma:  I have several web servers = that each contain two versions of our site (skin is different, URLs are the= same) located in different document roots, /var/www/a.example.com and /var/www/= b.example.com.  The marketing department wants to compare the vers= ions to see which is more effective for a number of metrics.  I need t= o direct 90% of traffic to the "a" doc root and 10% to the "= b" doc root.  This needs to be done via long-expire cookies since= I want users to get the same version of the site they were originally serv= ed.  So, essentially, I need the Apache balancer to load balance reque= sts to the web servers as well as drop a version cookie if it does not alre= ady exist.  If the Apache balancer encounters a version cookie that wa= s previously set, it should just direct traffic normally.  Then the re= quest is passed from the balancer to the webserver and I can rewrite the do= cument root with mod_rewrite based on the cookie set by the balancer.

Is this possible using mod_proxy_balancer, or am I on the wrong path.&n= bsp; Maybe there is an easier way to do this?

I've tried searchi= ng this list, reading the docs, and Googling but I can't seem to find a= nything that will satisfy these requirements.  I know that this would = be much easier to just have separate boxes for each version of the site; tr= ust me, I've tried suggesting that, but this is currently not an option= .

Thanks in advance,

Rich Schumacher
------=_Part_29607_29476451.1214246122112--