OHS Fails To Start With Message <AliasMatch takes two arguments, a regular expression and a filename>

(Doc ID 2336319.1)

Last updated on DECEMBER 06, 2017

Applies to:

Oracle HTTP Server - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

Configured forms.conf in Forms 12c using the example note referenced in the deployment guide at the link below.


https://docs.oracle.com/middleware/12213/formsandreports/deploy-forms/using-oracle-forms-services-http-listener-and-oracle-weblogic-server.htm#FSDEP233


When including any user-defined aliasMatch with the prefix /forms/ in forms.conf, add the directive WLExcludePathOrMimeType. For example, in Linux, when defining the aliasMatch for /forms/usericons in forms.conf, the directive WLExcludePathOrMimeType is defined as following:

AliasMatch /forms/usericons/(..*) "/home/userx/myicons/$1"WLExcludePathOrMimeType /forms/usericons/


OHS fails to start with the following messages in the ohs1.log:

<INFO> <OHS-0> <AliasMatch takes two arguments, a regular expression and a filename>
<SEVERE> <OHS-0> <C:\Oracle\MW\ohs\bin\launch.exe C:\Oracle\MW\ohs\bin\httpd.exe -DOHS_MPM_WINNT -d C:/Oracle/MW/user_projects/domains/FormsReports/config/fmwconfig/components/OHS/instances/ohs1 -f C:\Oracle\MW\user_projects\domains\FormsReports\config\fmwconfig\components\OHS\instances\ohs1\httpd.conf: exit status = 1>
<INFO> <OHS-4005> <Check the instance log file for more information: C:\Oracle\MW\user_projects\domains\FormsReports\servers\ohs1\logs\ohs1.log>
<SEVERE> <OHS-0> <Failed to start the server ohs1>

Changes

 Added the following line to forms.conf:

 AliasMatch /forms/usericons/(..*) "/home/userx/myicons/$1"WLExcludePathOrMimeType /forms/usericons/

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms