Skip Headers

Oracle HTTP Server Administration Guide
Release 2 (9.0.2)

Part Number A92173-02
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

2
Specifying the Server and File Locations

This chapter introduces you to the Oracle HTTP Server configuration files, explains how to set Oracle HTTP Server and server administrator options, and specifies file locations in the following topics:

Accessing Configuration Files

Oracle HTTP Server is configured by placing directives, which are basically instructions, into text configuration files. The configuration files are located in ORACLE_HOME/Apache/Apache/conf for UNIX and ORACLE_HOME\Apache\Apache\conf for Windows. Some of these files are read only once when the server starts or is reloaded, whereas some files are read every time a related file or directory is requested.

The configuration files which are read only once are called server-wide configuration files.

httpd.conf

This is a server configuration file which typically contains directives that affect how the server runs, such as user and group IDs it should use, location of other files. Because the server configuration file is the main file that the server starts with, Oracle HTTP Server doesn't include any directive that says where to locate it. The location is passed on command line when the server starts.

Setting Server and Administrator Functions

You can use the following directives to set basic Oracle HTTP Server and administrator functions:

ServerName

This enables the server to set a hostname that can be used to create redirection URLs, through which users can access directories without having to use a "/" at the end.

Oracle9iAS Web Cache on a Different Machine than Oracle HTTP Server

This section provides information about modifying ServerName directive for deployment if Oracle9iAS Web Cache is on a different machine than Oracle HTTP Server.

At installation time, Oracle HTTP Server sets the httpd.conf file with the following directives that impact Oracle9iAS Web Cache:

For example,

##
## httpd.conf -- Apache HTTP Server configuration file
##
...
Port 7777
Listen 7778
...
ServerName http_server.company.com
...
UseCanonicalName On
....

If Oracle9iAS Web Cache is deployed on a separate machine from Oracle HTTP Server, then the Oracle HTTP Server administrator must modify the ServerName directive in httpd.conf for each site hosted by Oracle9iAS Web Cache. This will enable Oracle HTTP Server to redirect URLs to Oracle9iAS Web Cache. The following example shows httpd.conf modified to set requests for www.1st.company.com and www.2nd.company.com to Oracle9iAS Web Cache with a listening port of 7777.

Port 7777
Listen 7778
...
ServerName www.1st.company.com
ServerName www.2nd.company.com
...
UseCanonicalName On
....

See Also:

"ServerName directive" in the Apache Server documentation 

UseCanonicalName

This determines which hostname and port to use when redirecting the URL to the same server.

ServerAdmin

This creates an email address that is included with every error message that clients encounter. It is useful to create a separate email address for this.

See Also:

"ServerAdmin directive" in the Apache Server documentation 

ServerSignature

This enables the server to recognize which server, amongst the various proxies, created the returned response, such as an error message.

ServerTokens

This controls the server information which is returned to clients, such as in error messages. This information includes a description of the generic OS-type of the server and information about compiled-in modules.

ServerAlias

This sets alternate names for the current virtual host.

See Also:

"ServerAlias directive" in the Apache Server documentation 

Specifying File Locations

You can use the following directives to control the location of various server files:

CoreDumpDirectory

This specifies the directory in which the server dumps core. The default is the ServerRoot directory. This directive is applicable to UNIX only.

See Also:

"CoreDumpDirectory directive" in the Apache Server documentation 

DocumentRoot

This sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document.

See Also:

"DocumentRoot directive" in the Apache Server documentation 

ErrorLog

This sets the name of the file to which the server will note any errors it encounters. If the name of the file does not begin with a slash, then it is assumed to be relative to the ServerRoot. If the name of the file begins with a pipe (|), then it is assumed to be a command to spawn to handle the error log.

See Also:

"ErrorLog directive" in the Apache Server documentation 

LockFile

This sets the path to the lockfile used when Oracle HTTP Server is complied with either USE_FCNTL_SERIALIZED_ACCEPT or USE_FLOCK_SERIALIZED_ACCEPT. It is recommended that default value be used. The main reason for changing it is if the logs directory is NFS mounted, since the lockfile must be stored on a local disk.

See Also:

"LockFile directive" in the Apache Server documentation 

PidFile

This enables you to set and change the location of the PID file to which the server records the process identification number. If the filename does not begin with a slash (/), then it is assumed to be relative to the ServerRoot.

See Also:

"PidFile directive" in the Apache Server documentation 

ScoreBoardFile

This is required in some architectures to set a file that the server will use to communicate between the parent and children processes. To verify if your architecture requires a scoreboard file is to run Oracle HTTP Server and see if it creates the file named by the directive. If your architecture requires it then you must ensure that this file is not used at the same time by more than one invocation of the server.

See Also:

"ScoreBoardFile directive" in the Apache Server documentation 

ServerRoot

This specifies the directory that contains the conf and logs subdirectories. If the server is started with the -f option, then you will have to specify ServerRoot.

See Also:

"ServerRoot directive" in the Apache Server documentation 


Go to previous page Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index