Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 43442 invoked by uid 500); 2 Oct 2002 23:04:17 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 43329 invoked from network); 2 Oct 2002 23:04:16 -0000 Message-Id: <200210022304.g92N43h12112@moya.tamu.edu> From: James G Smith To: Alan cc: modperl@perl.apache.org Subject: Re: virtualhost based variables Reply-To: JGSmith@TAMU.Edu X-Office: 326A Teague X-Organization: TAMU CIS Operating Systems Group, Unix X-Pgp-Key: Get key 0x7991CC92 by sending message with subject: "get pgp key" X-Url: http://HeX.TAMU.Edu/ X-Reposting-Policy: redistribute only with permission In-reply-to: Your message of "Wed, 02 Oct 2002 15:00:37 PDT." <20021002220037.GC29890@ufies.org> Date: Wed, 02 Oct 2002 18:04:03 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Alan wrote: >Greetings again. > >I'm trying to figure out the best/fastest/most elegant way of setting >virtualhost based variables. Basically I have three sites, and the only >difference between them is the DocumentRoot ($htdocroot) and the database >their data is being accessed from ($dbh). Document root should be accessable from $r. I would use Apache::DBI for persistent connections. Then connect at the beginning of the request with the DBI connection parameters coming from $r->dir_config. -- James Smith , 979-862-3725 Texas A&M CIS Operating Systems Group, Unix