Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 80035 invoked from network); 4 Sep 2009 14:33:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 14:33:25 -0000 Received: (qmail 88689 invoked by uid 500); 4 Sep 2009 14:26:04 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 88664 invoked by uid 500); 4 Sep 2009 14:26:04 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 88656 invoked by uid 99); 4 Sep 2009 14:26:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 14:26:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.prime@utoronto.ca designates 128.100.132.147 as permitted sender) Received: from [128.100.132.147] (HELO bureau60.ns.utoronto.ca) (128.100.132.147) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 14:25:53 +0000 Received: from [10.1.5.118] ([216.235.10.210]) (authenticated bits=0) by bureau60.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id n84EPNWF006014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 4 Sep 2009 10:25:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=utoronto.ca; s=beta; t=1252074330; bh=xdiimm895KzT14w9laKdNNuK3OwippYUUQFLHh8HErQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=651tY7RR8k02Z1elxysj9f6L4ftLfAd2p17qM5toyytlj2XwKKs+wbg/uPPNNkLFT q2VibdcGEOQ2PycfU64oNU7gxPSVAsqPX7PF8e7ZCxWIH/7Yvsmiotvh0klkYUytlx dAHZu/eSSB2P7a50ad2SUBlBGBdRXTw1oKyuK9Yc= Message-ID: <4AA12353.2040201@utoronto.ca> Date: Fri, 04 Sep 2009 10:25:23 -0400 From: Adam Prime User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Artem Kuchin CC: "modperl@perl.apache.org" Subject: Re: PerlSwitches -I References: <4AA121BA.7060603@itlegion.ru> In-Reply-To: <4AA121BA.7060603@itlegion.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Artem Kuchin wrote: > I have run into a problem. I want to have my packages > precompiled in apache process with > > PerlModule X:Y > > X:Y is my own package with is located in the site directory. > The site is a virtual host. > > However, this apache also has many other virtual hosts with ALMOST the same > software with a package named X:Y, but a little bit modified. > > So, in those virtual hosts i also need PerlModule X:Y > > The problem is that mod_perl cannot find X:Y until i specify > PerlSwitches -I/host1/dir > > But this works globally and cannot be specified per virtual host. I am > stuck here, > but i need this personalizaed for each virtual host. > > Any workaround? PerlOptions +Parent http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ I personally don't have any experience with this, but there are a number of threads in the archives about it, some of which actually do have confirmation that people managed to get it working right (IIRC) Adam