Using Fusion Middleware Control to Configure a Wallet and SSL

Getting Started with Oracle HTTP Server 4-11

4.4.3 Configuring the mod_perl Module

The mod_perl module embeds the Perl interpreter into Oracle HTTP Server. This eliminates start-up overhead and enables you to write modules in Perl. The module is disabled, by default. To enable the mod_perl module using Fusion Middleware Control, do the following:

1. Select Administration from the Oracle HTTP Server menu.

2. Select mod_perl Configuration from the Administration menu. The mod_perl

configuration page appears.

3. Enter the switch information in the Switches field.

4. Enter the environment variables to be passed to the scripts in the Environment

field.

5. Enter the required script names in the Require field.

6. Click Add Row to create a new row.

7. Configure mod_perl directives for a Location in the Perl Locations table. The

Location assigns a number of rules that the server should follow when the requests URI matches the Location.

a. Enter the base URI for the Perl scripts in the Locations field. Just as it is the

widely accepted convention to use cgi-bin for your mod_cgi scripts, it is also conventional to use perl as the base URI of the Perl scripts that are running under mod_perl.

b. Enter options in the Options field. The PerlOptions directive provides

fine-grained configuration by providing control over which class of Perl interpreter pool to be used. Options are enabled by prepending them with a plus sign + and are disabled by prepending them with a minus sign -.

c. If you want to send headers, then click the Send Header check box. The

PerlSendHeader directive is for mod_perl 1.0 backwards-compatibility. When enabled, the server sends an HTTP header to the browser on every script invocation. You should disable this option for NPH non-parsed-headers scripts. d. Enter the environment in the Environment field. The PerlSetEnv directive allows you to specify system environment variables and pass them into your mod_perl handlers.

e. Enter the response handler in the Response Handler field. The

PerlResponseHandler directive tells mod_perl which callback is going to do the job.

f. Enter the authentication handler in the Authentication Handler field. The

PerlAuthenHandler directive is used to set the handler to verify a users identification credentials. Note: If mod_perl has not been enabled, then you will be redirected to the Server Configuration page. Select mod_perl and click Apply to enable mod_perl. After the confirmation page has been displayed, restart Oracle HTTP Server, and then return to the mod_perl Configuration page.