dcsimg

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


Download the authoritative guide: Data Center Guide: Optimizing Your Data Center Strategy

Download the authoritative guide: Cloud Computing: Using the Cloud for Competitive Advantage

"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......)" ... 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 ...

This article was originally published on Mar 15, 2001
Page 1 of 1

Thanks for your registration, follow us on our social networks to keep up-to-date