CGI-Application-Demo-Dispatch
view release on metacpan or search on metacpan
httpd/conf/httpd.conf view on Meta::CPAN
LoadModule fcgid_module modules/mod_fcgid.so
<Location /local>
SetHandler fcgid-script
Options ExecCGI
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
lib/CGI/Application/Demo/Dispatch.pm view on Meta::CPAN
and make I<dispatch.cgi> executable.
=head2 Install the fancy instance script
Copy the distro's ./htdocs/local/ directory to your doc root, and make I<dispatch> executable.
=head2 Configure C<Apache> to use /local/dispatch
If in fancy mode, add these to C<Apache>'s httpd.conf:
LoadModule fcgid_module modules/mod_fcgid.so
and:
<Location /local>
SetHandler fcgid-script
Options ExecCGI
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
Note: My use of '/local' is not mandatory; you could use any URL fragment there.
And don't forget to restart C<Apache> after editing it's httpd.conf.
( run in 1.391 second using v1.01-cache-2.11-cpan-97f6503c9c8 )