Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 14735 invoked from network); 3 May 2004 16:40:05 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 May 2004 16:40:05 -0000 Received: (qmail 12594 invoked by uid 500); 3 May 2004 16:39:44 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 12580 invoked by uid 500); 3 May 2004 16:39:44 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 12564 invoked from network); 3 May 2004 16:39:44 -0000 Message-ID: <409675CC.9010401@jupiterhost.net> Date: Mon, 03 May 2004 11:39:40 -0500 From: "JupiterHost.Net" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: petersm , modperl@perl.apache.org Subject: Re: mod_perl File Extension Configuration instead of a Path Configuration References: <409172E8.9050507@jupiterhost.net> <409665EC.4010901@jupiterhost.net> <20040503154000.M24813@venzia.com> In-Reply-To: <20040503154000.M24813@venzia.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - redspot.jupiterhost.net X-AntiAbuse: Original Domain - perl.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jupiterhost.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N petersm wrote: > If you want to do something like this ... every file ending in .pl is run as > an Apache::Registry (mod_perl 1) script you could do something like this in > your httpd.conf > > [snip] > > PerlModule Apache::Registry > AddHandler perl-script .mpl > PerlHandler Apache::Registry > > [/snip] Excellent thanks! > This kind of setup is dangerous if you have users who can put .mpl scripts > anywhere inside of the document tree 'cause those scripts will run with the If they only have access to /home/user it would be cool right? IE: it would be just as dangerouse as running a regular perl or shell or OTHER_LANGUAGE_HERE script in their home dir, correct? > same permissions that your own scripts run with. If you can control the whole > document tree it's not that bad. mod_perl scripts are run with the permissions of the user correct? IE if Apache its 'nobody' or otherwsie (getpwuid($>))[0] > Michael Peters > Venzia > > ---------- Original Message ----------- > From: "JupiterHost.Net" > To: modperl@perl.apache.org > Sent: Mon, 03 May 2004 10:31:56 -0500 > Subject: Re: mod_perl File Extension Configuration instead of a Path Configuration > > >>Sorry to top post... >> >>So is it (the subject/original email below) impossible then? >> >>Or is it possible just not advisable? >> >>TIA >> >>JupiterHost.Net wrote: >> >>>Hello group! >>> >>>Super mod_perl newbie here :) >>> >>>I was wondering if its possible to setup mod_perl in httpd.conf with a >>>File Extension Configuration instead of a Path Configuration. >>> >>>IE - everything with the .mpl extension is run under mod_perl instead of >>>everything in /perl/ being run under mod_perl... >>>Something like: >>> AddHandler mod_perl-script .mpl >>> >>>If it is possible what benefits/problems/issues would there be to think >>>about vs a Path configuration? >>> >>>Where might I find good documentation about how to do this and what >>>issues you'd encounter/have to consider (I didn't see anything at >>>perl.apache.org... which I'm sure is my fault ;p )? >>> >>>TIA >>> >>>Lee.M - JupiterHost.Net >>> >>> >> >>-- >>Report problems: http://perl.apache.org/bugs/ >>Mail list info: http://perl.apache.org/maillist/modperl.html >>List etiquette: http://perl.apache.org/maillist/email-etiquette.html > > ------- End of Original Message ------- > > > > -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html