Contributor: Julia Pond, Warren Briese, Kevin Clark, Priscila Darakjian, Sander Goudswaard, Pushkar
Kapasi, Chuck Murray, Mark Nelson, Bert Rich, Shankar Raman, Baogang Song, Kevin Wang
The Programs (which include both the software and documentation) contain proprietary information of
Oracle Corporation; they are provided under a license agreement containing restrictions on use and
disclosure and are also protected by copyright, patent and other intellectual and industrial property
laws. Reverse engineering, disassembly or decompilation of the Programs, except to the extent required
to obtain interoperability with other independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems
in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this
document is error-free. Except as may be expressly permitted in your license agreement for these
Programs, no part of these Programs may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation.
If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on
behalf of the U.S. Government, the following notice is applicable:
Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are “commercial
computer software” and use, duplication, and disclosure of the Programs, including documentation,
shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement.
Otherwise, Programs delivered subject to the Federal Acquisition Regulations are “restricted computer
software” and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR
52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500
Oracle Parkway, Redwood City, CA 94065.
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy, and other measures to ensure the safe use of such applications if the Programs are used for
such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the
Programs.
Oracle is a registered trademark, and Oracle Store, Oracle8i, Oracle9i, SQL*Plus, and PL/SQL are
trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their
respective owners.
Contents
Send Us Your Comments ................................................................................................................... xi
Preface.......................................................................................................................................................... xiii
Group ............................................................................................................................................. 4-4
Transfer Log................................................................................................................................... 6-9
7 Oracle HTTP Server Modules
List of Modules.................................................................................................................................... 7-2
The SAXPath License ................................................................................................................ B-23
Glossary
Index
x
Send Us Your Comments
Oracle HTTP Server Administrator’s Guide, 10g Release 1 (10.1)
Part No. B12255-01
Oracle Corporation welcomes your comments and suggestions on the quality and usefulness of this
document. Your input is an important part of the information used for revision.
■Did you find any errors?
■Is the information clearly presented?
■Do you need more information? If so, where?
■Are the examples correct? Do you need more examples?
■What features did you like most?
If you find any errors or have any other suggestions for improvement, please indicate the document
title and part number, and the chapter, section, and page number (if available). You can send comments to us in the following ways:
■Electronic mail: infodev_us@oracle.com
■FAX: 650-506-7227 Attn: Server Technologies Documentation Manager
■Postal service:
Oracle Corporation
Server Technologies Documentation
500 Oracle Parkway, Mailstop 4op11
Redwood Shores, CA 94065
USA
If you would like a reply, please give your name, address, telephone number, and (optionally) electronic mail address.
If you have problems with the software, please contact your local Oracle Support Services.
xi
xii
This guide describes how to administer the Oracle HTTP Server.
This preface contains these topics:
■Intended Audience
■Documentation Accessibility
■Organization
■Related Documentation
■Conventions
Preface
xiii
Intended Audience
The Oracle HTTP Server Administrator’s Guide is intended for database
administrators and security managers.
Documentation Accessibility
Our goal is to make Oracle products, services, and supporting documentation
accessible, with good usability, to the disabled community. To that end, our
documentation includes features that make information available to users of
assistive technology. This documentation is available in HTML format, and contains
markup to facilitate access by the disabled community. Standards will continue to
evolve over time, and Oracle is actively engaged with other market-leading
technology vendors to address technical obstacles so that our documentation can be
accessible to all of our customers. For additional information, visit the Oracle
Accessibility Program Web site at
http://www.oracle.com/accessibility/
Accessibility of Links to External Web Sites in DocumentationThis
documentation may contain links to Web sites of other companies or organizations
that Oracle does not own or control. Oracle neither evaluates nor makes any
representations regarding the accessibility of these Web sites.
xiv
Organization
This document contains:
Chapter 1, "Oracle HTTP Server Overview"
This chapter describes the Oracle HTTP Server, highlighting the differences
between the Oracle distribution and the open source Apache product on which it is
based. It also explains how to start, stop and restart the server.
Chapter 2, "Oracle HTTP Server Concepts"
This chapter introduces you to the Oracle HTTP Server directory structure, and
configuration files, configuration file syntax, modules, and directives.
Chapter 3, "Specifying Server and File Locations"
This chapter explains how to set Oracle HTTP Server and server administrator
options, and specifies file locations.
Chapter 4, "Managing Server Processes"
This chapter provides an overview of the Oracle HTTP Server processes, and
provides information on how to regulate, and monitor these processes.
Chapter 5, "Managing the Network Connection"
This chapter provides information about specifying IP addresses and ports, and
managing server interaction, and network connection persistence.
Chapter 6, "Configuring and Using Server Logs"
This chapter discusses Oracle Diagnostic Logging, log formats, and describes
various log files and their locations.
Chapter 7, "Oracle HTTP Server Modules"
This chapter describes the modules (mods) included in the Oracle HTTP Server. The
modules extend the basic functionality of the Web server, and support integration
between Oracle HTTP Server and other Oracle Database components.
Chapter 8, "Managing Security"
This chapter provides an overview of Oracle HTTP Server security features and
configuration information for setting up a secure Web site using them.
xv
Chapter 9, "Frequently Asked Questions"
This chapter provides answers to frequently asked questions about Oracle HTTP
Server.
Chapter A, "Oracle HTTP Server Configuration Files"
This appendix lists commonly used Oracle HTTP Server configuration files.
Chapter B, "Third Party Licenses"
This appendix includes the Third Party License for all the third party products
included with Oracle Database.
Glossary
The glossary defines terminology used throughout this guide and the Oracle
Database documentation set.
Related Documentation
For more information, see these Oracle resources:
■Oracle Database Documentation Library
■Oracle Database Platform-Specific Documentation on Oracle Database Disk 1
Printed documentation is available for sale in the Oracle Store at
http://oraclestore.oracle.com/
xvi
To download free release notes, installation documentation, white papers, or other
collateral, please visit the Oracle Technology Network (OTN). You must register
online before using OTN; registration is free and can be done at
http://otn.oracle.com/membership/
If you already have a username and password for OTN, then you can go directly to
the documentation section of the OTN Web site at
http://otn.oracle.com/documentation/
Conventions
This section describes the conventions used in the text and code examples of this
documentation set. It describes:
■Conventions in Text
■Conventions in Code Examples
■Conventions for Windows Operating Systems
Conventions in Text
We use various conventions in text to help you more quickly identify special terms.
The following table describes those conventions and provides examples of their use.
ConventionMeaningExample
BoldBold typeface indicates terms that are
ItalicsItalic typeface indicates book titles or
UPPERCASE
monospace
(fixed-width)
font
defined in the text or terms that appear in
a glossary, or both.
emphasis.
Uppercase monospace typeface indicates
elements supplied by the system. Such
elements include parameters, privileges,
datatypes, RMAN keywords, SQL
keywords, SQL*Plus or utility commands,
packages and methods, as well as
system-supplied column names, database
objects and structures, usernames, and
roles.
When you specify this clause, you create an
index-organized table.
Oracle9i Database Concepts
Ensure that the recovery catalog and target
database do not reside on the same disk.
You can specify this clause only for a NUMBER
column.
You can back up the database by using the
BACKUP command.
Query the TABLE_NAME column in the USER_TABLES data dictionary view.
Use the DBMS_STATS.GENERATE_STATS
procedure.
xvii
ConventionMeaningExample
lowercase
monospace
(fixed-width)
font
lowercase
italic
monospace
(fixed-width)
font
Lowercase monospace typeface indicates
executables, filenames, directory names,
and sample user-supplied elements. Such
elements include computer and database
names, net service names, and connect
identifiers, as well as user-supplied
database objects and structures, column
names, packages and classes, usernames
and roles, program units, and parameter
values.
Note: Some programmatic elements use a
mixture of UPPERCASE and lowercase.
Enter these elements as shown.
Lowercase italic monospace font
represents placeholders or variables.
Enter sqlplus to open SQL*Plus.
The password is specified in the orapwd file.
Back up the datafiles and control files in the
/disk1/oracle/dbs directory.
The department_id, department_name,
and location_id columns are in the
hr.departments table.
Set the QUERY_REWRITE_ENABLED
initialization parameter to true.
Connect as oe user.
The JRepUtil class implements these
methods.
You can specify the parallel_clause.
Run Uold_release.SQL where old_release refers to the release you installed
prior to upgrading.
Conventions in Code Examples
Code examples illustrate SQL, PL/SQL, SQL*Plus, or other command-line
statements. They are displayed in a monospace (fixed-width) font and separated
from normal text as shown in this example:
SELECT username FROM dba_users WHERE username = ’MIGRATE’;
The following table describes typographic conventions used in code examples and
provides examples of their use.
ConventionMeaningExample
[ ]Brackets enclose one or more optional
items. Do not enter the brackets.
{ }Braces enclose two or more items, one of
which is required. Do not enter the braces.
|A vertical bar represents a choice of two
or more options within brackets or braces.
Enter one of the options. Do not enter the
vertical bar.
xviii
DECIMAL (digits [ , precision ])
{ENABLE | DISABLE}
{ENABLE | DISABLE}
[COMPRESS | NOCOMPRESS]
ConventionMeaningExample
...Horizontal ellipsis points indicate either:
■That we have omitted parts of the
CREATE TABLE ... AS subquery;
code that are not directly related to
the example
■That you can repeat a portion of the
SELECT col1, col2, ... , coln FROM
employees;
code
.
.
.
Vertical ellipsis points indicate that we
have omitted several lines of code not
directly related to the example.
Other notationYou must enter symbols other than
brackets, braces, vertical bars, and ellipsis
points as shown.
ItalicsItalicized text indicates placeholders or
variables for which you must supply
particular values.
UPPERCASEUppercase typeface indicates elements
supplied by the system. We show these
terms in uppercase in order to distinguish
them from terms you define. Unless terms
appear in brackets, enter them in the
order and with the spelling shown.
However, because these terms are not
case sensitive, you can enter them in
lowercase.
lowercaseLowercase typeface indicates
programmatic elements that you supply.
For example, lowercase indicates names
of tables, columns, or files.
Note: Some programmatic elements use a
mixture of UPPERCASE and lowercase.
Enter these elements as shown.
In releases prior to Oracle8i release 8.1.3,
when you installed Oracle components,
all subdirectories were located under a
top level ORACLE_HOME directory. For
Windows NT, the default location was
C:\orant.
This release complies with Optimal
Flexible Architecture (OFA) guidelines.
All subdirectories are not under a top
level ORACLE_HOME directory. There is a
top level directory called ORACLE_BASE
that by default is C:\oracle. If you
install the latest Oracle release on a
computer with no other Oracle software
installed, then the default setting for the
first Oracle home directory is
C:\oracle\orann, where nn is the
latest release number. The Oracle home
directory is located directly under
ORACLE_BASE.
All directory path examples in this guide
follow OFA conventions.
Refer to Oracle9i Database Getting Startingfor Windows for additional information
about OFA compliances and for
information about installing Oracle
products in non-OFA compliant
directories.
Go to the ORACLE_BASE\ORACLE_HOME\rdbms\admin directory.
xxi
xxii
1
Oracle HTTP Server Overview
This chapter describes the Oracle HTTP Server, highlighting the differences
between the Oracle distribution and the open source Apache product on which it is
based. It also explains how to start, stop and restart the server.
Topics discussed are:
■Oracle HTTP Server Features
■Oracle HTTP Server Components
■Oracle HTTP Server Support
■Oracle HTTP Server Management
■Starting, Stopping, and Restarting Oracle HTTP Server
Documentation from the Apache Software Foundation is referenced when
applicable.
Note: Readers using this guide in PDF or hard copy formats will
be unable to access third-party documentation, which Oracle
provides in HTML format only. To access the third-party
documentation referenced in this guide, use the HTML version of
this guide and click the hyperlinks.
Oracle HTTP Server Overview 1-1
Oracle HTTP Server Features
Oracle HTTP Server Features
Oracle HTTP Server is the Web server component of Oracle Database. It is based on
the Apache HTTP Server, version 1.3.28. It is a robust, reliable Web server,
preconfigured to do the following:
■provide a high availability infrastructure integration with Oracle Process
Manager and Notification Server (OPMN), for process management, death
detection and failover for Oracle HTTP Server processes.
See Also:Oracle Application Server 10g High Availability Guide
■provide Dynamic Monitoring Services (DMS) metrics that give runtime
performance statistics for Oracle HTTP Server processes.
See Also: Oracle Application Server 10g Performance Guide
■provide a request ID, which enhances request tracking through various
components by attaching a request ID to each request. This provides more
detailed information, allowing you to see how much time a particular request
spends in any component or layer.
■enable securing of transactions with Secure Sockets Layer (SSL) technology.
See Also:
■Oracle Application Server 10g Security Guide
■Chapter 8, "Managing Security" on page 8-1
■execute Perl scripts in the same process as the Oracle HTTP Server, or as CGI
script.
■access database stored procedures with a PL/SQL engine.
See Also: Oracle Application Server 10g mod_plsql User’s Guide
■enable scripting of HTML pages with PL/SQL code.
1-2 Oracle HTTP Server Administrator’s Guide
Oracle HTTP Server Components
Oracle HTTP Server consists of several components that run within the same
process. These components provide the extensive list of features that Oracle HTTP
Server offers when handling client requests. Following are the major components:
■HTTP Listener: Oracle HTTP Server is based on an Apache HTTP listener to
serve client requests. An HTTP server listener handles incoming requests and
routes them to the appropriate processing utility.
■Modules (mods): Many of the standard Apache modules are included with
Oracle HTTP Server. Oracle also includes several internal modules that are
specific to Oracle Database components.
See Also: "Oracle HTTP Server Modules" on page 1-3 for a
complete list of modules shipped with Oracle HTTP Server.
■Perl Interpreter: A persistent Perl runtime environment embedded in Oracle
HTTP Server through mod_perl.
See Also: Oracle Application Server 10g Concepts for more
information regarding Oracle Database components, and how they
relate to each other.
Oracle HTTP Server Components
Oracle HTTP Server Modules
Table 1–1 identifies the modules shipped with Oracle HTTP Server. Modules extend
the basic functionality of the Web server, and support integration between Oracle
HTTP Server and other Oracle Database components. Note that the list differs from
the Apache open source distribution (given the inclusion of Oracle modules), and
that not all modules are supported by Oracle.
Table 1–1 Oracle HTTP Server Modules
ModuleOracle Support Notes
mod_accessYes
mod_actionsYes
mod_aliasYes
mod_asisNo
mod_authYes
mod_auth_anonYes
Oracle HTTP Server Overview 1-3
Oracle HTTP Server Components
Table 1–1 Oracle HTTP Server Modules (Cont.)
ModuleOracle Support Notes
mod_auth_dbNoDisabled. Not shipped by Oracle.
mod_auth_dbmNo
mod_auth_digest
No
mod_autoindexYes
mod_cern_metaNo
mod_certheadersYes
mod_cgiYes
mod_defineYesUNIX systems only.
mod_digestYes
mod_dirYes
mod_dmsYesOracle module.
mod_envYes
mod_exampleNo
mod_expiresYes
mod_fastcgiYes
mod_headersYes
mod_imapNo
mod_includeYes
mod_infoYe s
Disabled. Experimental MD5 authentication; not
shipped by Oracle.
mod_isapiNoWindows systems only. Not shipped by Oracle
mod_log_agentNoDeprecated.
mod_log_configYes
mod_log_refererYesDeprecated.
mod_mimeYes
mod_mime_magicYes
mod_mmap_staticNo
mod_negotiationYes
1-4 Oracle HTTP Server Administrator’s Guide
Table 1–1 Oracle HTTP Server Modules (Cont.)
ModuleOracle Support Notes
mod_onsintYesOracle module.
mod_osslYesOracle module.
mod_perlYes
mod_plsqlYesOracle module.
mod_proxyYes
mod_rewriteYes
mod_setenvifYes
mod_soYes
mod_spelingYes
mod_statusYes
mod_unique_idYes
mod_userdirYes
mod_usertrackYes
Oracle HTTP Server Support
mod_vhost_aliasYes
Oracle HTTP Server Support
Oracle provides technical support for the following Oracle HTTP Server features
and conditions:
■Modules included in the Oracle distribution, except as noted in the table in
Table 1–1, "Oracle HTTP Server Modules". Modules from any other source,
including the Apache Software Foundation, are not supported by Oracle.
■Problems that can be reproduced within an Apache configuration consisting
only of supported Oracle Apache modules.
■Use of the included Perl interpreter within the supported Apache configuration.
Oracle HTTP Server Overview 1-5
Oracle HTTP Server Management
Oracle HTTP Server Management
You can manage Oracle HTTP Server using opmnctl. It is the command-line utility
for Oracle Process Manager and Notification Server (OPMN) for process
management. It is located in
■UNIX: ORACLE_HOME/opmn/bin
■Windows: ORACLE_HOME\opmn\bin
See Also: Oracle Process Manager and Notification Server
Administrator’s Guide for more information on opmnctl.
Starting, Stopping, and Restarting Oracle HTTP Server
Oracle HTTP Server is managed by Oracle Process Manager and Notification Server
(OPMN). You must always use the opmnctl utility to start, stop and restart Oracle
HTTP Server. Otherwise, the configuration management infrastructure cannot
detect or communicate with the Oracle HTTP Server processes, and problems may
occur.
Note: Do not use the apachectl utility to manage the Oracle
HTTP Server.
To determine the state of Oracle HTTP Server, use the following command:
opmnctl status
The processes are listed with their current state such as “Up” or “Down”.
Starting Oracle HTTP Server
To start Oracle HTTP Server, use the startproc command:
Restarting Oracle HTTP Server performs a graceful restart, which is invisible to
clients. In a graceful restart, on UNIX, a USR1 signal is sent. When the process
receives this signal, it tells the children to exit after processing the current request.
(Children that are not servicing requests exit immediately.)
The parent re-reads the configuration files and re-opens the log files, replacing the
children with new children in accordance with the settings it finds when re-reading
the configuration files. It always observes the process creation settings
(MaxClients, MaxSpareServers, MinSpareServers) specified, and takes the
current server load into account.
Starting, Stopping, and Restarting Oracle HTTP Server
To restart Oracle HTTP Server, use the restartproc command: