dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
The question I have is this how do I set up my stuff?
In my httpd.conf, I have the following:
PerlOptions -SetupEnv PerlWarn On PerlTaintCheck On PerlRequire /path/to/startup.pl <Location /reports> SetEnv ORACLE_HOME /where/oracle/lives SetEnv ORA_NLS33 /where/oracle/lives/ocommon/nls/admin/data SetHandler perl-script PerlResponseHandler My::Report::Handler </Location>
Do I have one handler that dispatches the report based on some HTTP param? Or, should I have an entry in httpd.conf for each report, along the lines of:
PerlOptions -SetupEnv PerlWarn On PerlTaintCheck On PerlRequire /path/to/startup.pl <Location /reports/report1> SetEnv ORACLE_HOME /where/oracle/lives SetEnv ORA_NLS33 /where/oracle/lives/ocommon/nls/admin/data SetHandler perl-script PerlResponseHandler My::Report::Handler1 </Location> <Location /reports/report2> SetEnv ORACLE_HOME /where/oracle/lives SetEnv ORA_NLS33 /where/oracle/lives/ocommon/nls/admin/data SetHandler perl-script PerlResponseHandler My::Report::Handler2 </Location>
What are peoples' experiences with this?
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting up mod_perl handlers
by jeffa (Bishop) on Nov 21, 2003 at 15:11 UTC | |
|
Re: Setting up mod_perl handlers
by perrin (Chancellor) on Nov 21, 2003 at 17:34 UTC | |
|
Re: Setting up mod_perl handlers
by Anonymous Monk on Nov 21, 2003 at 15:12 UTC | |
by mpeppler (Vicar) on Nov 21, 2003 at 15:30 UTC | |
by Anonymous Monk on Nov 21, 2003 at 15:49 UTC |