珀耳塞福建 发表于 2017-2-17 07:40:15

Proxying Requests from Multiple Virtual Websites to WebLogic Server

  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
dll and ini files used to define the proxy.
[*]
Copy iisforward.dll to the directory you created in step1.
[*]
Register the iisforward.dll for each website with IIS.
[*]
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
...




[*]
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.
[*]
Copy iisproxy.dll to 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
页: [1]
查看完整版本: Proxying Requests from Multiple Virtual Websites to WebLogic Server