Red Hat ENTERPRISE LINUX 3 Reference Manual page 150

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

132
10.2.4. Modules and Apache HTTP Server 2.0
In Apache HTTP Server 2.0, the module system has been changed to allow modules to be chained
together or combined in new and interesting ways. Common Gateway Interface (CGI) scripts, for ex-
ample, can generate server-parsed HTML documents which can then be processed by
This opens up a tremendous number of possibilities with regards to how modules can be combined to
achieve a specific goal.
The way this works is that each request is served by exactly one handler module followed by zero or
more filter modules.
Under Apache HTTP Server 1.3, for example, a Perl script would be handled in its entirety by the
Perl module (
mod_perl
module — which serves static files — and is then filtered by
Exactly how to use this, and all other new features of Apache HTTP Server 2.0, is beyond the scope
of this document; however, the change has ramifications if the
document which is handled by a module that is now implemented as a filter, as each contains trailing
path information after the true file name. The core module, which initially handles the request, does
not by default understand
such information. As an alternative, use the
into accepting requests with
The following is an example of this directive:
AcceptPathInfo on
For more on this topic, refer to the following documentation on the Apache Software Foundation's
website:
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
http://httpd.apache.org/docs-2.0/handler.html
http://httpd.apache.org/docs-2.0/filter.html
10.2.4.1. The
mod_ssl
The configuration for
/etc/httpd/conf.d/ssl.conf
the statement
Include conf.d/*.conf
10.2.1.3 Dynamic Shared Object (DSO) Support.
directives in SSL virtual hosts must explicitly specify the port number.
ServerName
For example, the following is a sample Apache HTTP Server 1.3 directive:
VirtualHost _default_:443
# General setup for the virtual host
ServerName ssl.example.name
...
/VirtualHost
To migrate this setting to Apache HTTP Server 2.0, use the following structure:
VirtualHost _default_:443
# General setup for the virtual host
ServerName ssl.host.name:443
...
/VirtualHost
). Under Apache HTTP Server 2.0, the request is initially handled by the core
and returns
PATH_INFO
.
PATH_INFO
Module
has been moved from the
mod_ssl
file. For this file to be loaded, and hence for
must be in the
Chapter 10. Apache HTTP Server
mod_perl
PATH_INFO
404 Not Found
directive to coerce the core module
AcceptPathInfo
httpd.conf
mod_include
.
directive is used for a
errors for requests that contain
file into the
httpd.conf
mod_ssl
file as described in Section
.
to work,

Advertisement

Table of Contents
loading

Table of Contents