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

[cgiapp] Dispatch Problems (v2 & mod_perl)


Hi,

I'm running into a wall here with Dispatch and thought to reach out for help.

I got everything going great, but decided to move the app to mod_perl and that's where things went a little crazy.

First, the apache config:

<Perl>
use lib '/var/www/site/web/resources';
</Perl>
<Location /resources>
    SetHandler perl-script
    PerlHandler ResourceDispatch
    PerlSetVar CGIAPP_DISPATCH_DEBUG 1
    PerlSetVar CGIAPP_DISPATCH_RM Off
</Location>

Then the URL I'm trying to go to:

http://www.example.com/resources/

And then when I go to:

http://www.example.com/resources/suppliers/

It still defaults to the start runmode. I turned on the debugging feature and found out why:

[Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '/equipment/:category?' using regex '^/equipment/?([^/]*)?/$' [Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '/suppliers' using regex '^/suppliers/$' [Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '/suppliers/page/:page' using regex '^/suppliers/page/([^/]*)/$' [Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '/suppliers/:company' using regex '^/suppliers/([^/]*)/$' [Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '/suppliers/:company/visit' using regex '^/suppliers/([^/]*)/visit/$' [Fri Mar 10 14:42:54 2006] null: [Dispatch] Trying to match '/' against rule '' using regex '^/$'
[Fri Mar 10 14:42:54 2006] null: [Dispatch] Matched!

And if I go to:

http://www.example.com/resources/suppliers/suppliers

Then that works.

It's as if the middle or first path info is getting ignored by dispatch.

Any clues to where to look?

I tried CGIAPP_DISPATCH_RM Off, thinking maybe it's using that first path for the runmode? There's no .htaccess or other rewriting going on, either.

Thanks,

Jason

---------------------------------------------------------------------
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.