Proxying Requests from Multiple Virtual Websites to WebLogic Server

To proxy requests from multiple websites (defined as virtual directories in IIS) to WebLogic Server:

  1. Create a new directory for the virtual directories. This directory will contain dll and ini files used to define the proxy.
  2. Copy iisforward.dll to the directory you created in step1.
  3. Register the iisforward.dll for each website with IIS.
  4. Create a file called iisforward.ini. Place this file in the same directory that contains iisforward.dll. This file should contain the following entry for each virtual website defined in IIS:
    vhostN=websiteName:port
    websiteName:port=dll_directory/iisproxy.ini

    Where:

    • N is an integer representing the virtual website. The first virtual website you define should use the integer 1 and each subsequent website should increment this number by 1.
    • websiteName is the name of the virtual website as registered with IIS.
    • port is the port number where IIS listens for HTTP requests.
    • dll_directory is the path to the directory you created in step 1.

      For example:

      vhost1=strawberry.com:7001
      strawberry.com:7001=c:\strawberry\iisproxy.ini
      vhost2=blueberry.com:7001
      blueberry.com:7001=c:\blueberry\iisproxy.ini
      ...
  5. Create an iisproxy.ini file for the virtual eebsites, as described in step 4 in Proxying Requests. Copy this iispoxy.ini file to the directory you created in step 1.
  6. Copy iisproxy.dll to the directory you created in step 1.
  7. In IIS, set the value for the Application Protection option to high (isolated). If the Application Protection option is set to Medium(pooled), the iisproxy.dll that registered as the first website will always be invoked. In this event,  all the requests will be proxied to the same WebLogic Server instances defined in the iisproxy.ini of the first website.

Sample iisproxy.ini File

Here is a sample iisproxy.ini file for use with a single, non-clustered WebLogic Server. Comment lines are denoted with the “#” character.

# This file contains initialization name/value pairs
# for the IIS/WebLogic plug-in.

WebLogicHost=localhost
WebLogicPort=7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2

Here is a sample iisproxy.ini file with clustered WebLogic Servers. Comment lines are denoted with the “#” character.

# This file contains initialization name/value pairs
# for the IIS/WebLogic plug-in.

WebLogicCluster=myweblogic.com:7001,yourweblogic.com:7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2

Note:If you are using SSL between the plug-in and WebLogic Server, the port number should be defined as the SSL listen port.

The document is refered from the following URL:

http://docs.oracle.com/cd/E12840_01/wls/docs103/plugins/isapi.html#wp109058

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值