[mp2] how to automap modules in httpd.conf?

[prev] [thread] [next] [Date index for 2005/05/26]

From: Foo Ji-Haw
Subject: [mp2] how to automap modules in httpd.conf?
Date: 05:42 on 26 May 2005
Hello guys,

I have been happily developing apps with MP2. Some hiccups, but mostly 
all due to my bad coding. But generally MP2 is a great platform and I 
will like to be a better MP2 guy. :)

For one of my applications, I have a bunch of modules that I wrote, each 
actually maps to unique directory paths. For example:

 app::module1 => http://www.domain.com/module1/
 app::module2 => http://www.domain.com/module2/

I can do this by creating an exhaustive list in httpd.conf with:
<Location /module1>
        SetHandler perl-script
        PerlResponseHandler app::module1
</Location>
<Location /module2>
        SetHandler perl-script
        PerlResponseHandler app::module2
</Location>
...

But if I have a really long list of modules all with similar package 
names, is there a way to do autoloading at the httpd.conf level? I 
thought I read about it before, but now I just can't seem to find it on 
the Web again...

Thanks in advance.

[mp2] how to automap modules in httpd.conf?
Foo Ji-Haw 05:42 on 26 May 2005

Re: [mp2] how to automap modules in httpd.conf?
Stas Bekman 05:48 on 26 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52