Hello,
I've been using CGI::Application::Dispatch for quite awhile. Yesterday,
our ISP moved the server my our apps run on and neglected to reinstall a
bunch of perl modules, including the cgiapp modules.
Now that there reinstalled, I find that the appications aren't
dispatching properly to the default, though using the full path works.
That is, if the default module for cat.pl is "list", this works:
http://www.mydomain/cgi-bin/mywebapp/cat.pl/list
but this produces a 404 error:
http://www.mydomain/cgi-bin/mywebapp/cat.pl
Maybe there's a newer version of CGIApp::Dispatch that doesn't let me
get away with something I used to get away with? Here's the webapp
script (running under plain CGI, not mod_perl :
******************
#!/usr/bin/perl
use strict;
use CGI::Application::Dispatch;
use CGI::Carp qw(fatalsToBrowser set_message);
use FindBin qw($Bin);
use lib "$Bin/../perl_lib";
use lib "$Bin/Modules"; #contains List.pm, the default
my $debug = "";
CGI::Application::Dispatch->dispatch(
DEFAULT => $debug || 'list',
);
*******************
Any suggestions appreciated.
--
Bruce McKenzie
Business Information Graphics, Inc.
242 W. 36th Street
10th Floor
New York, NY 10018
v. 212-477-4288
http://www.2MinuteExplainer.com
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]