Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Something like Tomcat for Perl

by diotalevi (Canon)
on May 18, 2003 at 15:07 UTC ( #258988=note: print w/ replies, xml ) Need Help??


in reply to Re: Something like Tomcat for Perl
in thread Something like Tomcat for Perl

mod_perl handlers allow you associate arbitrary locations with your code. Consider this snippet. It uses a redirect so requests for the root go to the script's URL and from there I've associated /opencivics with the OpenCivics::WebApp::handler() method.

Redirect /index.html http://www.somewhere.org/opencivics <Location /opencivics> PerlSetEnv ALZABO_DEBUG ALL SetHandler perl-script PerlModule Apache::Request PerlModule OpenCivics PerlHandler OpenCivics::WebApp </Location>


Comment on Re: Re: Something like Tomcat for Perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://258988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-30 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls