Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flag
By N2H

Apache HTTPD in the use of DSO (compiler)

Apache HTTP server is a modular (or building-block) procedure, the administrator can choose to increase the number of modules to the server some of the features. These modules can create static when the server program to compile the server httpd binary code can be compiled into a number of independent servers in the process Dynamic Shared Objects (DSOs) document. DSO files can be compiled when the server program to create, or in the future to expand the use of Apache to create a separate tool to apxs.
This document will describe how to use DSO modules, as well as behind.

To achieve

Apache HTTPD on the support of the DSO, that is, on a single module of the dynamic load, is based on a module called mod_so to achieve, at this time mod_so must be static to the HTTP server to compile kernel. This is not the only addition to the core outside dso way to compile the module. Hands-on, the other Apache server module can be compiled through a separate process to be designated to compile documents for the DSO, as described in the document to install, configure at this time of the parameters should be set up - enable-xxxx = shared (xxxx for The module names, such as the rewrite, etc.). When a module has been compiled for a mod_foo.so the DSO files, you can use in the httpd.conf file mod_so the LoadModule order to tell the server to start or restart when loading this module.

In order to simplify the creation of Apache module (in particular third-party modules) of the DSO document the process, apache provides a new tool called apxs (APache eXtenSion). It can be out of the apache source code modules will be compiled into a document DSO. The realization of the idea that it is very simple: the installation of Apache when, configure the script make install process will install Apache's C header files, and apxs procedures (apxs is a perl script), which rely heavily on the concrete platform and compiler of the connector set Some of the signs (Flag), for the DSO to create documents. In this way, users will be able to use apxs in the Apache source tree and did not need the current platform and compiler of the connector configuration (DSO to generate the target file format) of the compilers of the Apache module.

The use of a summary of

Click to continue reading

September 29th, 2006 Posted by eric | System, Unix / BSD / Linux | no comments