Create a redirector configuration file in the location identified by the WSPLUGIN_CONFIG_FILE environment variable, then edit the file and configure these directives:
Connector.IIS.Extension_URI – identifies the virtual directory path to the plug-in DLL on the IIS; if not set, the default is /sybase/libjeas_iis.dll. If the path is incorrect, requests fail with an HTTP server error. Use this syntax to specify the virtual directory path:
Connector.IIS.Extension_URI /virtual-directory/libjeas_iis.dll
If your virtual directory name is “sybase”,
you do not need this directive in your configuration file.
Connector.IIS.URLS – identifies one or more context paths that the redirector handles. If the URL of an incoming request matches any of the path prefixes, the redirector handles the request. If you set the value to “/*”, the redirector handles all the requests sent to the Web server. If this directive does not exist in the configuration file, the redirector does not handle any requests. Use this syntax to specify the context path:
Connector.IIS.URLS /context-path [, /context-path, ...]
For example, to configure the redirector to handle client
requests for http://host-name/examples1/servlet/TestApp
and http://host-name/examples2/*
,
add this line to the redirector configuration file:
Connector.IIS.URLS /examples1, /examples2
Connector.IIS.LogFile – specifies the full path of the redirector log file. A separate log file is required because IIS-based logging is limited to 80 bytes per request, which is insufficient for debugging. The default log file name is redirector.log, which is created in the IIS current working directory. To specify another file name, use this syntax:
Connector.IIS.LogFile drive:\directory-name\file-name
Connector.LogLevel – determines how much information is written to the Web server log file. For a description of the logging level options, see Table 4-3. To specify the logging level, use this syntax:
Connector.LogLevel logging-level
Connector.WebApp – maps Web server requests to EAServer listeners; for examples, see “Mapping Web server requests to EAServer listeners”.
This sample redirector configuration file:
Connector.IIS.Extension_URI /iis/libjeas_iis.dll Connector.IIS.URLS /myWebApp, /SRP Connector.WebApp /myWebApp = http://neptune:8000 Connector.WebApp /SRP = http://pluto:8000 Connector.IIS.LogFile C:\temp\redirector.log Connector.LogLevel verbose
Specifies that the Web server redirector plug-in DLL is in the target Web site’s virtual directory iis
Directs the plug-in to forward client requests for
the URL http://<host:port>/myWebApp/*
to http://neptune:8000/myWebApp/*
,
and to forward requests for http://<host:port>/SRP/*
to http://pluto:8000/SRP/*
Directs the plug-in to write debug information to C:\temp\redirector.log using the verbose option