[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CGI::Application::Dispatch and second level subdirectories


On 6/13/07, Simon Rees <suppressed> wrote:
<Location /srees/connectm_tracker>
  SetHandler perl-script
  PerlHandler CGI::Application::Dispatch
  PerlSetVar CGIAPP_DISPATCH_PREFIX  Newforms::MembersCGIApp::Dispatch
  PerlSetVar CGIAPP_DISPATCH_DEFAULT /public/front
  PerlSetVar CGIAPP_DISPATCH_DEBUG 1
</Location>

When I try to request http://test.server/srees/connectm_tracker I get the
following error message:
[Dispatch] ERROR: 'Can't find module
Newforms::MembersCGIApp::Dispatch::Connectm::Tracker' for request
'/srees/connectm_tracker/'
Whereas I would expect it to use the Newforms::MembersCGIApp::Dispatch::Public
module. So it looks like C::A::Dispatch is considering connectm_tracker to be
the module name.

Is Newforms::MembersCGIApp::Dispatch::Public your CA::Dispatch
subclass? If so, your PerlHandler should be pointing to that, not
CA::Dispatch itself.


Mike

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.