Hi,
I use CGI::App quite a bit, but there has always been a few quirks in the
dispatch process I didn't like. I am working on getting these ironed out
right now, and in fact have most of it done.
So I have the app working exactly like I want. But I'm having trouble
figuring out the foo that turns on ModPerl:::Registry for the .cgi file.
Here is my httpd.conf:
<VirtualHost 192.168.1.99:80>
ServerName myapp.waveright.com
DocumentRoot /home/me/MyApp/root
CustomLog /home/me/MyApp/logs/access_log combined
ErrorLog /home/me/MyApp/logs/error_log
RewriteEngine on
RewriteRule (.*/\w+)$ /index.cgi/$1
<Directory /home/me/MyApp/root>
Order allow,deny
Allow from all
Options ExecCGI
AddHandler cgi-script .cgi
Action text/html /index.cgi
DirectoryIndex index.cgi
</Directory>
</VirtualHost>
And here is the contents of index.cgi:
#!/usr/bin/perl
use warnings;
use strict;
use FindBin;
use lib "$FindBin::Bin/../lib";
use CGI::Application::Dispatch::Regexp;
CGI::Application::Dispatch::Regexp->dispatch(
debug => 1,
prefix => 'MyStore::Controller',
table => [
'/' => { app => 'Root', rm => 'default' },
qr|^(/.+\.html/?)?| => { app => 'Root', rm => 'default' },
qr|/([^/]+)/([^/]+)/?| => { names => [qw(app rm)] },
],
);
Again, the configuration above works great. But how do I modify the
configuration to get the server to use ModPerl::Registry to execute the
script?
Thank you,
Todd W.
---------------------------------------------------------------------
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]