[cgiapp] Location not found with CGI::Application::Dispatch under mod_perl V 2

Ron Savage ron at savage.net.au
Mon Sep 1 01:11:17 EDT 2008


Hi Folks

(1) Set up:
[Mon Sep 01 14:53:10 2008] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9
OpenSSL/0.9.8g mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0
configured

(2) startup.pl:
use lib '/home/ron/perl.modules/Local-Sites/lib';

use Apache::DBI;
use Apache2::Reload;
use Apache2::RequestRec (); # For $r -> content_type().
use Apache2::RequestIO  (); # For print.
use Apache2::Const -compile => 'OK';
use CGI::Application::Dispatch;
use CGI::Application::Plugin::Apache;
use Local::Sites;

1;

(3) httpd.conf:
# Warning:
# PerlOptions -GlobalRequest
# won't work with CGI::Application::Dispatch.

PerlOptions -SetupEnv
PerlPostConfigRequire /home/ron/httpd/prefork/conf/startup.pl
PerlSwitches -T

<Location /local>
	SetHandler perl-script
	PerlResponseHandler CGI::Application::Dispatch
	PerlSetVar CGIAPP_DISPATCH_PREFIX Local
</Location>

(4)
I'm hoping to hit http://127.0.0.1/local/sites and have
CGI::Application::Dispatch fire up Local::Sites, but I get:
Not Found
The requested URL /local/sites was not found on this server.

(5)
There is nothing in logs/error_log, and only this in logs/access_log:
127.0.0.1 - - [01/Sep/2008:15:01:18 +1000] "GET /local/sites HTTP/1.1"
404 209

Is the problem that the docs for CGI::Application::Dispatch are Apache
V1 oriented, and that something different needs to be done for V2?

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list