`
marine_chen
  • 浏览: 75946 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

为Weblogic9.2安装和配置Apache HTTP 服务器插件

    博客分类:
  • J2ee
阅读更多

下面内容来自Installing and Configuring the Apache HTTP Server Plug-In:

To install the Apache HTTP Server Plug-In as a dynamic shared object:

  1. Locate the shared object directory for your platform using Table 3-1.
  2. Identify the plug-in shared object file for your version of Apache in Table 3-2.
  3. Verify that the WebLogic Server Apache HTTP Server Plug-In mod_so.c module is enabled.

    The Apache HTTP Server Plug-In will be installed in your Apache HTTP Server installation as a Dynamic Shared Object (DSO). DSO support in Apache is based on a module mod_so.c, which must be enabled before mod_wl_20.so is loaded. If you installed Apache HTTP Server using the script supplied by Apache, mod_so.c is already enabled. Verify that mod_so.c is enabled by executing the following command:

    APACHE_HOME\bin\apache -l

    (Where APACHE_HOME is the directory containing your Apache HTTP Server installation.)

    This command lists all enabled modules. If mod_so.c is not listed, you must rebuild your Apache HTTP Server, making sure that the following options are configured:

    ...
    --enable-module=so
    --enable-rule=SHARED_CORE
    ...
    See Apache 2.0 Shared Object (DSO) Support at   http://httpd.apache.org/docs/2.0/dso.html.
  4. Install the Apache HTTP Server Plug-In module for Apache 2.0.x by copying the mod_wl_20.so file to the APACHE_HOME\modules directory and adding the following line to your APACHE_HOME/conf/httpd.conf file manually:
    LoadModule weblogic_module     modules/mod_wl_20.so
  5. Define any additional parameters for the Apache HTTP Server Plug-In.

    The Apache HTTP Server Plug-In recognizes the parameters listed in General Parameters for Web Server Plug-Ins. To modify the behavior of your Apache HTTP Server Plug-In, define these parameters:

  6. Verify the syntax of the APACHE_HOME\conf\httpd.conf file with the following command:
    APACHE_HOME\bin\apachectl -t 

    The output of this command reports any errors in your httpd.conf file or returns:

    Syntax OK
  7. Restart Weblogic Server.
  8. Start (or restart if you have changed the configuration) Apache HTTP Server.
  9. Test the plug-in by opening a browser and setting the URL to the Apache Server + "/weblogic/", which should bring up the default WebLogic Server HTML page, welcome file, or default servlet, as defined for the default Web Application on WebLogic Server. For example:
    http://myApacheserver.com/weblogic/

 

Configuring the Apache HTTP Server Plug-In

After installing the plug-in in the Apache HTTP Server, configure the WebLogic Server Apache Plug-In and configure the server to use the plug-in. This section explains how to edit the Apache httpd.conf file to instruct the Apache server to load the WebLogic Server library for the plug-in as an Apache module, and to specify the application requests that should be handled by the module.

Editing the httpd.conf File

Edit the httpd.conf file in your Apache HTTP server installation to configure the Apache HTTP Server Plug-In.

This section explains how to locate and edit the httpd.conf file, to configure the server to use the WebLogic Server Apache Plug-In, to proxy requests by path or by MIME type, to enable HTTP tunneling, and to use other WebLogic Server plug-in parameters.

  1. Open the httpd.conf file.

    The file is located at APACHE_HOME\conf\httpd.conf (where APACHE_HOME is the root directory of your Apache HTTP server installation). See a sample httpd.conf file at Setting Up Perimeter Authentication.

  2. Ensure that the WebLogic Server modules are included for Apache 2.0.x, manually add the following line to the httpd.conf file:
    LoadModule weblogic_module   modules\mod_wl_20.so
  3. Add an IfModule block that defines one of the following:

    For a non-clustered WebLogic Server:

    The WebLogicHost and WebLogicPort parameters.

    For a cluster of WebLogic Servers:

    The WebLogicCluster parameter.

    For example:

    <IfModule mod_weblogic.c>
      WebLogicHost myweblogic.server.com
      WebLogicPort 7001
    </IfModule>
  4. To proxy requests by MIME type, add a MatchExpression line to the IfModule block. Note that if both MIME type and proxying by path are enabled, proxying by path takes precedence over proxying by MIME type.

    For example, the following IfModule block for a non-clustered WebLogic Server specifies that all files with MIME type .jsp are proxied:

    <IfModule mod_weblogic.c>
      WebLogicHost myweblogic.server.com
      WebLogicPort 7001
      MatchExpression *.jsp
    </IfModule>

    You can also use multiple MatchExpressions, for example:

    <IfModule mod_weblogic.c>
      WebLogicHost myweblogic.server.com
      WebLogicPort 7001
      MatchExpression *.jsp
      MatchExpression *.xyz
    </IfModule>

    If you are proxying requests by MIME type to a cluster of WebLogic Servers, use the WebLogicCluster parameter instead of the WebLogicHost and WebLogicPort parameters. For example:

    <IfModule mod_weblogic.c>
      WebLogicCluster w1s1.com:7001,w1s2.com:7001,w1s3.com:7001
      MatchExpression *.jsp
      MatchExpression *.xyz
    </IfModule>
  5. To proxy requests by path, use the Location block and the SetHandler statement. SetHandler specifies the handler for the Apache HTTP Server Plug-In module. For example the following Location block proxies all requests containing /weblogic in the URL:
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>

    The PathTrim parameter specifies a string trimmed from the beginning of the URL before the request is passed to the WebLogic Server instance (see General Parameters for Web Server Plug-Ins).

  6. Optionally, enable HTTP tunneling for t3 or IIOP.
  7. Define any additional parameters for the Apache HTTP Server Plug-In.

    The Apache HTTP Server Plug-In recognizes the parameters listed in General Parameters for Web Server Plug-Ins. To modify the behavior of your Apache HTTP Server Plug-In, define these parameters either:

General Parameters for Web Server Plug-Ins

Parameters are case sensitive.

Table 7-1 General Parameters for Web Service Plug-Ins
String that the plug-in prepends to the beginning of the original URL, after PathTrim is trimmed and before the request is forwarded to WebLogic Server.
Maximum time in seconds that the plug-in should attempt to connect to the WebLogic Server host. Make the value greater than ConnectRetrySecs. If ConnectTimeoutSecs expires without a successful connection, even after the appropriate retries (see ConnectRetrySecs), an HTTP 503/Service Unavailable response is sent to the client.
Sets the type of logging performed for debugging operations. The debugging information is written to the /tmp/wlproxy.log file on UNIX systems and c:\TEMP\wlproxy.log on Windows NT/2000 systems. Override this location and filename by setting the WLLogFile parameter to a different directory and file. Ensure that the tmp or TEMP directory has write permission assigned to the user who is logged in to the server. Set any of the following logging options (HFC,HTW,HFW, and HTC options may be set in combination by entering them separated by commas, for example "HFC,HTW"):

ON

OFF

HFC

HTW

HFW

HTC

ERR

ALL

See the Debug parameter
Specifies path and file name for the log file that is generated when the Debug parameter is set to ON. You must create this directory before setting this parameter.
See the Debug parameter
If a WebLogic Server listed in either the WebLogicCluster parameter or a dynamic cluster list returned from WebLogic Server fails, the failed server is marked as "bad" and the plug-in attempts to connect to the next server in the list.
评论

相关推荐

    WebLogic9.2安装及配置[定义].pdf

    本文档将指导读者安装和配置 WebLogic 9.2 服务器,解决常见的安装和配置问题。 一、选择 WebLogic 9.2 的原因 在选择 WebLogic 9.2 之前,需要了解 WebLogic 8 的限制。WebLogic 8 只支持 J2EE 1.3 规范,也就是 ...

    weblogic9.2安装过程

    WebLogic 9.2 安装过程详解 ...WebLogic 9.2 的安装过程需要按照特定的步骤进行操作,包括安装 WebLogic 服务器、启动服务器、访问控制台、停止服务器、创建新的域、配置 Admin 服务器和 Managed 服务器等。

    windows下weblogic 9.2 安装部署 配置域 发布工程 详细图解文档

    总的来说,Windows下的WebLogic 9.2安装部署、配置域和发布工程是一个涉及多方面知识的过程,需要对Java EE、WebLogic Server的架构以及相关的管理工具有深入理解。通过本文的介绍,希望能为你提供一个清晰的实践...

    weblogic9.2环境部署

    WebLogic Server 是一款由 Oracle 公司提供的企业级 Java 应用服务器,它提供了一个用于开发、集成、部署和管理Java EE应用程序的平台。本篇文章将详细阐述如何在Windows环境下部署WebLogic 9.2,包括创建域、启动...

    Weblogic9.2安装配置手册

    Weblogic9.2安装配置详细解释,一目了然

    weblogic9.2的配置及部署

    #### 二、WebLogic 9.2 的安装与配置 ##### 1. 安装准备 在开始安装之前,确保满足以下条件: - **操作系统**:WebLogic 9.2 支持多种操作系统,包括 Windows、Linux 和 Solaris。 - **JDK 版本**:建议使用 Sun ...

    Apache WebLogic9.2 安装及集群、SSL配置手册.pdf

    ### Apache WebLogic 9.2 安装及集群、SSL配置关键知识点 #### 一、Apache WebLogic 9.2 安装流程 ##### 1.1 创建用户 - **步骤**:首先需要在系统中创建一个用户,用于后续安装过程中的一些权限控制。通过点击...

    BEA WebLogic 9.2 Cluster安装配置手册

    ### BEA WebLogic 9.2 Cluster安装配置手册 #### 一、准备工作 在开始安装BEA WebLogic 9.2集群之前,需要确保完成以下准备工作: 1. **用户和组的创建**:为了保证WebLogic Server的安全性和权限管理,需要创建...

    MyEclipse + WebLogic 9.2 配置详解

    在配置 MyEclipse 的 WebLogic 9 服务器启动时,需要打开首选项对话框,并展开 MyEclipse 下的 Application Servers,选择 WebLogic 9.2,然后配置服务器的启动参数和 JVM 参数,以便在开发和部署 Java Web 应用程序...

    weblogic9.2安装

    在这个版本中,安装过程是初步接触WebLogic Server的关键步骤,接着是配置数据源和Web应用,以及调整服务器设置等。 首先,WebLogic 9.2 的安装涉及下载安装包,然后按照安装向导进行操作,包括选择安装类型(如...

    RedHatLinux 安装WebLogic9.2MP2

    在本教程中,我们将...总的来说,安装WebLogic Server 9.2 MP2在RedHat Linux上是一个涉及多步骤的过程,需要对Linux系统和Java应用服务器有一定了解。遵循本教程,你将能够成功完成安装并开始使用WebLogic Server。

    weblogic9.2配置文档

    WebLogic Server 9.2 是一款由甲骨文公司开发的企业级Java应用程序服务器,它提供了用于构建、部署和管理企业级Web应用程序和服务的平台。本配置文档主要涵盖了WebLogic 9.2的安装以及集群配置,旨在帮助用户在Red ...

    weblogic 9.2 win32

    - **配置**: 在WebLogic Server 9.2中,可以通过管理控制台轻松配置集群,包括添加服务器实例、设置负载均衡策略等。 - **应用场景**: 集群通常用于生产环境中,以支持高流量网站和应用程序。 #### 六、高可用性 - ...

    red hat5下weblogic9.2安装配置

    在Red Hat 5操作系统上安装配置WebLogic Server 9.2是一个关键的过程,对于搭建Java EE应用程序服务器环境至关重要。WebLogic Server是Oracle公司提供的一个企业级应用服务器,用于部署和管理基于Java的应用程序。...

Global site tag (gtag.js) - Google Analytics