Select MIME Configuration from the Administration menu. The MIME

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. 4-12 Oracle Fusion Middleware Administrators Guide for Oracle HTTP Server

8. Review the settings. If the settings are correct, click Apply to apply the changes. If

the settings are incorrect, or you decide to not apply the changes, click Revert to return to the original settings. 9. Restart Oracle HTTP Server. See Section 4.1.4 . The mod_perl module configuration is saved and shown on the mod_perl Configuration page.

4.4.4 Configuring the mod_wl_ohs Module

The mod_wl_ohs module allows requests to be proxied from an Oracle HTTP Server to Oracle WebLogic Server. To configure the mod_wl_ohs module using Fusion Middleware Control, do the following:

1. Select Administration from the Oracle HTTP Server menu.

2. Select mod_wl_ohs Configuration from the Administration menu. The mod_wl_

ohs configuration page appears.

3. If you are using a WebLogic cluster, enter the WebLogic Servers that can be used

for load balancing in the WebLogic Cluster field. The server or cluster list is a list of host:port entries. If a mixed set of clusters and single servers is specified, the dynamic list returned for this parameter will return only the clustered servers. Note: If you are manually editing the mod_perl configuration instead of using Fusion Middleware Control, then all directives must be defined within the IfModule mod_perl.c block of the mod_ perl.conf file. Any mod_perl related directive defined outside of this block might be ignored.