Wednesday, October 22, 2008

Steps To Configure WLS Plug-in IIS 6.0

To configure the WLS proxy, first thing to do is to place the iisproxy.dll, iisforward.dll and iisproxy.ini in the same folder. In this example they are in C:\Inetpub\wwwroot\proxy> (NOTE, in subsequent screen shots you will see the proxy directory I used under Default Web Server in IIS)

the iisproxy.ini has the following parameters:

WebLogicHost=

WebLogicPort= This is 7001 in the examples

WlForwardPath=/examplesWebApp

WlForward is the web application you want to proxy to in this example, If all web applications are to proxy to WebLogic Server just use WlForwardPath=/

Debug=ALL

Optional and used to collect debug information. It is logged by default in c:\TEMP\wlproxy.log

DebugConfigInfo=ON

DebugConfigInfo is also is only used for debugging, the default is OFF.

See http://e-docs.bea.com/wls/docs81/plugins/isapi.html#112307 for discussion of issproxy.ini.

Also note the WebLogicCluster=myweblogic.com:7001,yourweblogic.com:7001 line if you are using clusters. This replaces the WebLogicHost and WeLogicPort entries.

(See http://e-docs.bea.com/wls/docs81/plugins/plugin_params.html#1143049 for complete parameter list)

So just to get started all that needs to be in the issproxy.ini is the following when proxying is done by the Web Application name, if proxying exclusively by mime type (e..g.; .jsp) WlForwardPath does not need to be specified in the iisproxy.ini

NOTE:This is case sensitive

WebLogicHost=

WebLogicPort=

WlForwardPath=/examplesWebApp

This is a sample output from the directory/folder that the iisproxy.dll, iisforward.dll and iisproxy.ini is placed

Directory of C:\Inetpub\wwwroot\proxy

05/05/2004 03:08 PM

.

05/05/2004 03:08 PM

..

05/05/2004 03:02 PM 24,576 iisforward.dll

04/29/2004 06:21 PM 557,056 iisproxy.dll

05/04/2004 07:51 PM 110 iisproxy.ini

And here is how it looks from IIS


Note: I am using the Default Web Site in this example.

Now configure IIS. 6.0

Start IIS. When IIS is up and running go to the Default Web Site ( shown above, note that stoped is NOT shown) an right click on Default Web Site and then click on properties (next to last entry in drop down list)

Go to ISAPI filters, click on add

Enter any name of your choosing for filter name



Now click browse


select iisforward.dll


and then ok

Nex,t go back to Default Web Site, right click, select properties and Home Directory


select configuration

Go to the Home Directory, select configuration and select add


And you will see the following:


Select browse, then iisproxy.dll from drop down list and for extension use .wlforward


and make sure “Verify that the file exits” is not checked (See last check box on screen above and screen shot below


Then click OK.

Next go to Web Service Extension and make sure that “All Unknown ISAPI Extensions” are allowed (NOTE: in this example all extensions are allowed BUT for WLS we just set first entry allowed as described above)


Restart IIS. Go to Default web server and right click and click stop on dropdown menu or stop play

This is what IIS looks like when it is running


IIS can be stopped by also clicking the black square (stop on play line) as well as right click on Default Web Server to properties and highlighted stop.

When stopped it will look like this


Then start by clicking on arrow on play or right click Default Web Server, properties and start will be visible.



1 comment:

Anonymous said...

hi Team Weblogic!

how do you proxy to multiple path, specifically the path below.

http://192.168.0.168:8892/HOPPortal
http://192.168.0.168:16200/cs/
http://192.168.0.168:8889/appadmin/

As you can see the ip address are all the same but the port and the path are different. I've been trying to solve this problem for 1 week already and I still could not figure out how it is done. Hope you guys can help me! Thanks!