Basic HTML Coding Building Apache with Mod_Perl and Mod_DSO User Authentication with Apache and Perl/CGI Redirecting URLs with Apache Using Server Side Includes IP Mirror (returns IP address and browser type) HTML Home Page gecko-ak.org home page |
Apache with Static Mod_Perl and Mod_DSOOne of the really cool things about the Apache web server is its flexibility: there are a number of modules that you can include to extend the usefulness of Apache. Some, such as mod_auth, mod_auth_ldap, mod_auth_external and mod_auth_mysql allow the Apache web server to authenticate users before allowing access to web documents. Other modules, such as mod_perl and mod_php build programming language interpreters into Apache--making CGI programs very fast. In my own humble (or whatever :) opinion, two of the most useful modules for Apache are mod_DSO and mod_perl. mod_dso allows the server administrator to add modules to Apache without needing to completely rebuild the server. Say you've got an Apache server running, but now you need to add the ability to server secure (encrypted) web pages. You could download mod_ssl and rebuild the web server, but as long as you've compiled mod_dso into the server at the beginning, you don't have to. Instead, you can use apxs to link mod_ssl to the already existing server installation--VERY cool! So why not build Apache with mod_dso, and add mod_perl as a dynamic module, you might ask. Unfortunately, those with more programming experience than I recommend that you not build mod_perl as a DSO module, because as a DSO, it can, in some installations, develop a memory leak. This problem does not seem to occur when mod_perl has been built as a static module, however. Getting Started: First, you need to get the Apache and mod_perl sources:
The typical *nix download and unpack sequence:
cd to the mod_perl directory
|
||
|
© Michael Wallette/gecko-ak.org 2004
All weg pages, documentation, etc. on the gecko-ak.org web site, except where otherwise notated, may be copied, reproduced, etc. for any non-commercial purposes without any additional permission from the author. Please feel free to link to my site, but please do not include my web pages on your site without giving credit to the original source (a readable URL is sufficient), and please do not claim my work as your own. Come on, how lame is it to steal someone else's content, anway? :) |
|||