Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 3000 invoked by uid 500); 19 Mar 2002 13:38:22 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 2988 invoked from network); 19 Mar 2002 13:38:21 -0000 Received: from bn0.blue.net (66.38.1.100) by daedalus.apache.org with SMTP; 19 Mar 2002 13:38:21 -0000 Received: from blue (darin.bginc.net [66.38.3.13]) by bn0.blue.net (8.12.1/8.12.1) with SMTP id g2JDcMxT003911; Tue, 19 Mar 2002 07:38:22 -0600 (CST) Message-ID: <000401c1cf4b$5c18a3a0$0d032642@net.blue.net> From: "John Darin Holloway" To: , References: <007201c1ceca$3cda4e20$1009a8c0@extrememotivation.com> Subject: Re: Running one or more concurrent websites? Date: Tue, 19 Mar 2002 08:38:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >From your description, it looks like there will not be a difference in the content of the two document trees, am I correct in this assumption? If I am, the question of why comes to mind? If its a disk performance issue, moving to scsi, raid, or scsi and raid would be your best bets. If the two apps have different content, then perhaps http://httpd.apache.org/docs/misc/rewriteguide.html is what you are looking for to make the urls appear the same, but the homepage could be a cgi/jsp that does this. Broken perl implementation <--index.cgi--> grep access_log if ($line ~= index.cgi){ $loads++ } # If app2 is loaded when evenly divisible by 5, you get the 80/20 split you mentioned in your post if($loads%5 == 0){ output html code for app2 homepage } else{ output app1 homepage } <--end index.cgi--> Then have a rewrite rule to clean up the urls. Anyone else want to comment? John Darin Holloway Bluegrass Network, LLC ----- Original Message ----- From: "Sean LeBlanc" To: Sent: Monday, March 18, 2002 05:14 PM Subject: RE: Running one or more concurrent websites? > > -----Original Message----- > > From: John Darin Holloway [mailto:jdholloway@blue.net] > > Sent: Monday, March 18, 2002 2:36 PM > > To: users@httpd.apache.org; sean@nutros.com > > Subject: Re: Running one or more concurrent websites? > > > > > > Sounds interesting, but probably should be done in the > > context of a web > > application, lets take a weblog style example. > > > > You randomly hand out moderator access to a user once every > > day on your site > > www.myweblog.com, then the perl/servlet/jsp/asp that handles > > features should > > have a flag that gets tripped when Bob is chosen to be a > > moderator, Bob gets > > redirected to admin.myweblog.com and the backend should > > authenticate him. > > The next day Alice has the flag set and she gets redirected > > to admin and so > > on. > > I'm not positive we are talking about the exact same thing. We could > be, but let me refine my earlier question. Let's say that I'm running > a site, and it resides in the directory /myapp. > Now, I want to take the same tree in the above dir, and copy to > /myapp2...I then want some users to run myapp, and > others to myapp2, but on a session-by-session basis, and not have them > aware of it, if possible. So, their browser shows > "http://www.mysite.com/somepath/myapp/somepage.html", but could be pulled > from the /myapp2 dir... > > > > > ----- Original Message ----- > > From: "Sean LeBlanc" > > To: > > Sent: Monday, March 18, 2002 03:34 PM > > Subject: Running one or more concurrent websites? > > > > > > > Okay, here's a question that I've been meaning to ask for a > > while. Is > > there > > > a way to (at random), > > > at the start of a user's "session", send them to one or > > more alternate > > sites > > > hosted on the same webserver? Let's say that 20% of the > > time I want to > > send > > > users to > > > one version of my application, and 80% of the time, they go > > to the other > > > version...and they > > > stay on the chosen version until they close their browser. > > Is there a way > > > that Apache > > > could do this? > > > > > > > > > TIA, > > > Sean - sean@nutros.com > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org