Chapter 9 Web Server Redirector Plug-In


Installing the plug-in on Microsoft IIS

The plug-in is available with EAServer versions 3.6.1 and later and runs on Windows NT 4.0 and Windows 2000. The plug-in uses the ISAPI (Internet Server API) framework, which defines a DLL method of binding custom server-side processes to an instance of an IIS. The plug-in is a DLL that the IIS loads when the server is started and that stays in memory until the server shuts down.

To install and configure the redirector plug-in on an IIS:

  1. Set the WSPLUGIN_CONFIG_FILE environment variable.
  2. Install the IIS plug-in.
  3. Edit the redirector configuration file.
  4. Copy libraries from EAServer to your Web server.

Setting the WSPLUGIN_CONFIG_FILE environment variable

The WSPLUGIN_CONFIG_FILE environment variable identifies the redirector configuration file that the Web server requires to run the plug-in. Using the System Properties dialog box, create the WSPLUGIN_CONFIG_FILE variable, then set it to the full path of the configuration file. You can name the file whatever you want. For example, if the configuration file is redirector.cfg and it is in the c:\winnt\system32\iis directory, set WSPLUGIN_CONFIG_FILE to c:\winnt\system32\iis\redirector.cfg . The configuration file must be on the server where the plug-in is installed.

Note   When you edit an environment variable, you must reboot your machine for the changes to take effect.

Installing the IIS plug-in

Your EAServer installation includes a libjeas_iis.dll file that implements the IIS Web server plug-in. To install the plug-in:

  1. On Windows NT, choose Start | Program Files | Windows NT 4.0 Option Pack | Microsoft Internet Information Server | Internet Service Manager.

    On Windows 2000, run the Control Panel | Administrative Tools applet, and select Internet Service Manager.
  2. Highlight the Web site where you want to install the plug-in, right-click, and select Properties.
  3. On the ISAPI Filters tab, click Add, and install libjeas_iis.dll as an ISAPI filter. Filters are invoked in the listed order. Sybase recommends that you install libjeas_iis.dll first in the list. Click OK.
  4. Highlight the Web site where you installed libjeas_iis.dll, right-click, and select New | Virtual Directory. Create a virtual directory that corresponds to the location specified in the Connector.IIS.Extension_URI directive in the redirector configuration file--see "Editing the redirector configuration file". The default name for the virtual directory is "sybase." Enable read, log access, and execute permissions on the virtual directory.
  5. Copy libjeas_iis.dll from your EAServer /lib subdirectory to the virtual directory location that you specified in the previous step.

Editing the redirector configuration file

Create a redirector configuration file in the location identified by the WSPLUGIN_CONFIG_FILE environment variable, then edit the file and configure these directives:

Sample configuration file

This sample redirector configuration file:

Connector.IIS.Extension_URI /iis/libjeas_iis.dll
Connector.IIS.URLS  /myWebApp, /SRP
Connector.WebApp /myWebApp = http://neptune:8080
Connector.WebApp /SRP = http://pluto:8080
Connector.IIS.LogFile C:\temp\redirector.log
Connector.LogLevel verbose

Copying libraries from EAServer to your Web server

Copy these DLLs from your EAServer /lib subdirectory to a location in your system PATH:

To debug your application:

 


Copyright © 2002 Sybase, Inc. All rights reserved.