Administering and Securing the Apache Server by Ashok Appu

Administering and Securing the Apache Server by Ashok Appu

Author:Ashok Appu [Appu, Ashok]
Language: eng
Format: epub
Tags: Computers, General, Computer Programs, Web Sites, Security, Client-Server Computing, Web Servers, Security Measures, Apache (Computer File : Apache Group)
ISBN: 9781592000036
Google: PeGE-znRvfQC
Amazon: 1592000037
Barnesnoble: 1592000037
Publisher: Premier Press
Published: 2002-10-01T07:00:00+00:00


This argument enables DSO support on most platforms. However, on some platforms, you need to specify the following:

--enable-rule=SHARD_CORE

The preceding argument causes most of the code that comprises the Apache binary to be compiled into the DSO module libhttpd.so.

Next, to compile most of the standard Apache modules as DSO modules, you specify the following argument:

--enable-shared=max

The preceding statement uses DSO while compiling the modules with Apache.

You can also use a combination of the --enable-module and --enable-shared arguments to enable individual modules and to compile them as DSO modules.

The LoadModule and the AddModule directives can be located anywhere in the httpd.conf file. However, you need to ensure that the LoadModule directive is included before the AddModule directive. Whenever you add a LoadModule directive, a corresponding AddModule directive should be added. To disable a module, you can comment out the corresponding AddModule entry for the module. However, this is waste of resources because the module is loaded anyway, even though it is not used. On the other hand, if you specify a module in the AddModule directive for which the corresponding entry in the LoadModule directive is not present or is commented out, you might get a configuration error. This error occurs because you are trying to enable a module that is not available to the server.

The order in which the modules are specified in the LoadModule and AddModule directives is critical for the functioning of the server, because sometimes one module is dependent on another module. Specifying a module that is dependent on another module that is not loaded will produce an error. Also, modules affect the request object that is passed from module to module in the various stages of request processing. As a result, the effect of a change of a request object is passed on to all the subsequent modules. Apache, by default, has a well-planned sequence of modules that behaves correctly. If you change this order, changes in the request object might cause behavior that is really hard to debug—unless you fully understand how Apache works.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.