Take23: Do-Si-Do - "Locally" correcting to the secure port with mod_perl

Thursday Mar 15th 2001 by ServerWatch Staff
Share:

... if you're already familiar with Perl, and want to get your hands into the server internals, this is the way to do that... and mod_perl also allows Apache::Registry, by which your Perl CGI scripts can be cached in server memory, eliminating all the spawn-and-parse overhead they would usually require, and allowing them access to Apache's internals via Apache::Request, and also giving you a door into lots of state management tools ...

"The plus sign in +Apache::PortCorrect preloads the module. The rest of the statement declares the default function handler() in the specified module as code scheduled to be run immediately after receiving the request and building the request object, before bothering with anything else."

"mod_perl isn't really required to do this. I'm pretty sure you could do the same thing with mod_rewrite (an amazing piece of code....) But if you're already familiar with Perl, and want to get your hands into the server internals, this is the way to do that... and mod_perl also allows Apache::Registry, by which your Perl CGI scripts can be cached in server memory, eliminating all the spawn-and-parse overhead they would usually require, and allowing them access to Apache's internals via Apache::Request, and also giving you a door into lots of state management tools (since they share the server child's lifetime......)"

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved