0% found this document useful (0 votes)
9 views2 pages

Forms Conf

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Forms Conf

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

# $Id: forms.conf 22-nov-2004.

03:29:38 osingh Exp $


# Name
# forms.conf
# Purpose
# Apache mod_oc4j and mod_jserv configuration file for Forms Services.
# This file should be included into the Oracle Apache HTTP Listener
# configuration file (typically by adding an include statement to the
# oracle_apache.conf file)
# Remarks
# If Forms is to be used with JServ, the jserv.properties file needs editing
# to add the "forms" servlet zone with properties file forms.properties
# Notes
# Virtual paths: We use AliasMatch when defining virtual paths for
# security reasons (prevents directory browsing).

# Virtual path mapping for Forms Java jar and class files (codebase)
AliasMatch ^/forms/java/(..*) "c:\oasForm/forms/java/$1"
# Virtual path for JInitiator downloadable executable and download page
AliasMatch ^/forms/jinitiator/(..*) "c:\oasForm/jinit/$1"
# Virtual path for runform.htm (used to run a form for testing purposes)
AliasMatch ^/forms/html/(..*) "c:\oasForm/tools/web/html/$1"
# Virtual path for webutil
AliasMatch ^/forms/webutil/(..*) "c:\oasForm/forms/webutil/$1"
AliasMatch ^/forms/iconos(.*) "c:\oasForm/forms/iconos/$1"
# Configuration for JServ (if mod_jserv.c is available and not mod_oc4j.c)
<IfModule mod_jserv.c>

# Only configure for JServ if mod_oc4j is NOT available:


<IfModule !mod_oc4j.c>
# Virtual path mapping for FormsServlet and ListenerServlet.
# Purpose: paths to invoke the servlets should be /forms/frmservlet
# and /forms/lservlet respectively.
# We map frmservlet to servlet.frm, and lservlet to servlet.frml.
# The apJServAction directives (below) will then remap those.
AliasMatch ^/forms/frmservlet(.*) "/servlet.frm"
AliasMatch ^/forms/lservlet(.*) "/servlet.frml"

ApJServMount /forms/servlet /forms


#
# Let the servlets be called by file extension (e.g /servlet.frm)
#
ApJServAction .frm /forms/servlet/frmservlet
ApJServAction .frml /forms/servlet/lservlet

# Prevent access to the Forms Servlets by paths other than


# /forms/frmservlet and /forms/lservlet.
# 1. Prevent access via the .frm and .frml file extensions:
<LocationMatch ^.*\.frm.*>
order deny,allow
deny from all
</LocationMatch>

# 2. Stop access by class (by paths like


# /forms/servlet/oracle.forms.servlet.FormsServlet)
<LocationMatch ^/forms/servlet/oracle\.forms.*>
order deny,allow
deny from all
</LocationMatch>

</IfModule>

</IfModule>

# Config. for OC4J


<IfModule mod_oc4j.c>
Oc4jMount /forms OC4J_BI_Forms
Oc4jMount /forms/frmservlet OC4J_BI_Forms
Oc4jMount /forms/frmservlet/* OC4J_BI_Forms
Oc4jMount /forms/lservlet OC4J_BI_Forms
Oc4jMount /forms/lservlet/* OC4J_BI_Forms
</IfModule>

#default.env
#[
#forms= logon.fmx
#envfile = default.env
#]

You might also like