To reply to my own messages...
These work fine in the httpd.conf with a <Perl> section, but I was trying to
do it in a separate startup script. I'm just going to move my code back to
the main conf file for now.
--
Barry Hoggard
Chief Technology Officer
http://www.investorama.com
v: 212.905.1639 x194
e: [EMAIL PROTECTED]
----- Original Message -----
From: "Barry Hoggard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 17, 2000 5:35 PM
Subject: Problem with %Location in Perl Config
| I'm working on an apache configuration script, and I'm having trouble with
| the enabling of perl-status, server-info, etc.
|
| I modified the examples in the eg directory, so I have:
|
| my %handlers = (
| "/perl-status" => "Apache::Status",
| );
|
| for (keys %handlers) {
| $Location{$_} = {
| PerlHandler => $handlers{$_},
| SetHandler => "perl-script",
| Options => "ExecCGI",
| };
| }
|
|
| for (qw(status info)) {
| $Location{"/server-$_"} = {
| SetHandler => "server-$_",
| };
| }
|
| print STDERR Apache::PerlSections->dump();
|
| ---
| the dump gives me:
|
| ...
|
| #hashes:
|
| %Location = (
| '/perl-status' => {
| 'PerlHandler' => 'Apache::Status',
| 'SetHandler' => 'perl-script',
| 'Options' => 'ExecCGI'
| },
| '/server-status' => {
| 'SetHandler' => 'server-status'
| },
| '/server-info' => {
| 'SetHandler' => 'server-info'
| }
| );
|
|
| -----
|
| I still get 404 errors. Any suggestions?
|
|
|
| --
| Barry Hoggard
| Chief Technology Officer
| http://www.investorama.com
| v: 212.905.1639 x194
| e: [EMAIL PROTECTED]
|
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]