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.
In reply to Setting up mod_perl handlers by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |