Creating weblogic.conf Files

3-6 Using Web Server 1.1 Plug-Ins with Oracle WebLogic Server Include confweblogic.conf IfModule The syntax of weblogic.conf files is the same as that for the httpd.conf file. This section describes how to create weblogic.conf files, and includes sample weblogic.conf files.

3.2.2.1 Creating weblogic.conf Files

Be aware of the following when constructing a weblogic.conf file. ■ Enter each parameter on a new line. Do not put ‘=’ between a parameter and its value. For example: PARAM_1 value1 PARAM_2 value2 PARAM_3 value3 ■ If a request matches both a MIME type specified in a MatchExpression in an IfModule block and a path specified in a Location block, the behavior specified by the Location block takes precedence. ■ If you use an Apache HTTP Server VirtualHost block, you must include all configuration parameters MatchExpression, for example for the virtual host within the VirtualHost block see Apache Virtual Host documentation at http:httpd.apache.orgdocsvhosts . ■ If you want to have only one log file for all the virtual hosts configured in your environment, you can achieve it using global properties. Instead of specifying the same Debug, WLLogFile and WLTempDir properties in each virtual host you can specify them just once in the IfModule tag. ■ Sample httpd.conf file: IfModule mod_weblogic.c WebLogicCluster johndoe02:8005,johndoe:8006 Debug ON WLLogFile c:tmpglobal_proxy.log WLTempDir c:myTemp DebugConfigInfo On KeepAliveEnabled ON KeepAliveSecs 15 IfModule Location jurl SetHandler weblogic-handler WebLogicCluster agarwalp01:7001 Location Location web SetHandler weblogic-handler PathTrimweb Debug OFF WLLogFile c:tmpweb_log.log Location Location foo SetHandler weblogic-handler PathTrimfoo Debug ERR WLLogFile c:tmpfoo_proxy.log Installing and Configuring the Apache HTTP Server Plug-In 3-7 Location ■ All the requests which match jurl will have Debug Level set to ALL and log messages will be logged to c:tmpglobal_proxy.log file. All the requests which match web will have Debug Level set to OFF and no log messages will be logged. All the requests which match foo will have Debug Level set to ERR and log messages will be logged to c:tmpfoo_proxy.log file. ■ Oracle recommends that you use the MatchExpression statement instead of the Files block.

3.2.2.2 Sample weblogic.conf Configuration Files