Hi
I'm using CGI::Application::Dispatch for the first time and am having some
trouble configuring it on a test server. Hopefully someone on this list who
is more skilled with this module can help me :-)
The custom for a url on our test server is:
http://test.server/username/project
However, I'm having trouble getting CGI::Application::Dispatch working in a
mod_perl enviroment in a second level subdir.
My Apache2 config is:
<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.
When the application is in either the root or first level dirs it works fine.
E.g. the following Apache config works:
<Location /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>
Is it possible to do what I'm attempting to do using C::A::Dispatch? Could
there be something wrong in my Apache config or do I need to add a custom
dispatch table for this to work? I've had a go at tracing how PATH_INFO gets
translated but don't fully understand how the code works at the moment...
Thanks in advance for any help or advice you can give!
cheers Simon
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Simon Rees | tech-lists @t zodiac2000 co uk |
ORA-03113: end-of-file on communication channel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
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.