To proxy requests from multiple websites (defined as virtual directories in IIS) to WebLogic Server:
- Create a new directory for the virtual directories. This directory will contain
dllandinifiles used to define the proxy. - Copy
iisforward.dllto the directory you created in step1. - Register the
iisforward.dllfor each website with IIS. - Create a file called
iisforward.ini. Place this file in the same directory that containsiisforward.dll. This file should contain the following entry for each virtual website defined in IIS:vhost
N=websiteName:port websiteName:port=dll_directory/iisproxy.ini-
Nis 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. -
websiteNameis the name of the virtual website as registered with IIS. -
portis the port number where IIS listens for HTTP requests. -
dll_directoryis the path to the directory you created in step 1.vhost1=strawberry.com:7001 strawberry.com:7001=c:\strawberry\iisproxy.ini vhost2=blueberry.com:7001 blueberry.com:7001=c:\blueberry\iisproxy.ini ...
-
- Create an
iisproxy.inifile for the virtual eebsites, as described in step 4 in Proxying Requests. Copy thisiispoxy.inifile to the directory you created in step 1. - Copy
iisproxy.dllto the directory you created in step 1. - 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
本文介绍如何配置IIS以代理多个网站(WebLogic Server)的请求。主要步骤包括:为虚拟目录创建新目录;复制并注册iisforward.dll;创建iisforward.ini文件定义虚拟网站;设置iisproxy.ini配置文件;确保IIS应用保护选项设置正确。

被折叠的 条评论
为什么被折叠?



