Re: Help wanted with locations / configuration

2003-09-10 Thread Steve Hay
Steve Hay wrote: Thomas Klausner wrote: Hi! On Mon, Sep 08, 2003 at 04:51:55PM +0100, Steve Hay wrote: The project is going to be written as a series of mod_perl handlers - one for the main "home page", and others for various sub-components. Each handler is implemented by a separate modul

Re: Help wanted with locations / configuration

2003-09-09 Thread Marc Slagle
On Tue, 2003-09-09 at 05:00, Steve Hay wrote: > As in a PerlTransHandler, yes? Yup. > Is there a performance penalty with this? You're using Perl code to > inspect the URI, and then handing control back to the Apache core if it > is a static file. I wanted to avoid requests for static files w

Re: Help wanted with locations / configuration

2003-09-09 Thread petersm
Steve Hay <[EMAIL PROTECTED]> wrote > > Thanks for the idea, though. If I manage to overcome my > inexplicable aversion to file extensions then it certainly looks > like the simplest solution. I understand the argument that it's better for the user to not know the extension of the file they a

Re: Help wanted with locations / configuration

2003-09-09 Thread Thomas Klausner
Hi! On Tue, Sep 09, 2003 at 10:05:43AM +0100, Steve Hay wrote: > > > > SetHandler default > > > > > > SetHandler default > > > > > >This is working as expected, i.e. request for /css/foo.css or /img/bar.png > >are not handled by Apache::Dispatch > > > > > What about requests for /css or /img ?

Re: Help wanted with locations / configuration

2003-09-09 Thread Xavier Noria
On Tuesday 09 September 2003 11:16, Steve Hay wrote: > Those were actually my very frist ideas, but I decided that I prefer > to have all the URL's to begin with /myproject. I don't necessarily > require that URL to be related to the filesystem structure, but I > just want all the URL's (dynamic

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
petersm wrote: Steve Hay <[EMAIL PROTECTED]> wrote SetHandler perl-script PerlHandler MyProject->dispatcher SetHandler default-handler Correct me if I'm wrong, but can't you just say> AddHandler perl-script .cgi PerlHandler MyProject->dispatcher using AddHandler in

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Perrin Harkins wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1] /myproject/component2 [mp1] ... /myproject/images [static] /myproject/javascript [static] /myproject/stylesheet

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Marc Slagle wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: It also needs to have access to various static resources (images, stylesheets, JavaScript libraries etc.). Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1] /myproject/comp

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Thomas Klausner wrote: Hi! On Mon, Sep 08, 2003 at 04:51:55PM +0100, Steve Hay wrote: The project is going to be written as a series of mod_perl handlers - one for the main "home page", and others for various sub-components. Each handler is implemented by a separate module (all sub-classes

Re: Help wanted with locations / configuration

2003-09-08 Thread Perrin Harkins
On Mon, 2003-09-08 at 11:51, Steve Hay wrote: > Thus, I want to have something like this: > > /myproject [mp1] > /myproject/component1 [mp1] > /myproject/component2 [mp1] > ... > /myproject/images [static] > /myproject/javascript [static] > /myproject/stylesheets [stat

Re: Help wanted with locations / configuration

2003-09-08 Thread petersm
Steve Hay <[EMAIL PROTECTED]> wrote > It also needs to have access to various static resources (images, > stylesheets, JavaScript libraries etc.). > > Thus, I want to have something like this: > > /myproject [mp1] > /myproject/component1 [mp1] > /myproject/component2 [mp1] >

Re: Help wanted with locations / configuration

2003-09-08 Thread Thomas Klausner
Hi! On Mon, Sep 08, 2003 at 04:51:55PM +0100, Steve Hay wrote: > The project is going to be written as a series of mod_perl handlers - > one for the main "home page", and others for various sub-components. > Each handler is implemented by a separate module (all sub-classes of a > common base

Re: Help wanted with locations / configuration

2003-09-08 Thread Marc Slagle
On Mon, 2003-09-08 at 11:51, Steve Hay wrote: > > It also needs to have access to various static resources (images, > stylesheets, JavaScript libraries etc.). > > Thus, I want to have something like this: > > /myproject [mp1] > /myproject/component1 [mp1] > /myproject/componen

Help wanted with locations / configuration

2003-09-08 Thread Steve Hay
Hi, I'm having trouble deciding what the best plan is for the arrangement of the components of a new project that I'm starting. The project is going to be written as a series of mod_perl handlers - one for the main "home page", and others for various sub-components. Each handler is implemente