Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
iServer
AOL Gateway
Apache Gateway
ISAPI Gateway
NSAPI Gateway
CGI Gateway
Java Gateway
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Samples
Sales
Legal
Feedback
|
Use the instructions below to configure the Netscape FastTrack, Enterprise
Server or other Application/Web Servers supporting NSAPI to use iServer as
their Servlet Engine.
- Install and configure iServer.
- Install and configure Netscape FastTrack, Enterprise Server or other
Application/Web Server that supports NSAPI.
- Add the following Mime-Type to the mime.types file.
type=magnus-internal/servlet exts=servlet
- Add the following lines in the Init section before
<Object name=default> to the obj.conf file.
Init fn=load-modules funcs=process_request shlib="path"
path
|
the path to the iServer NSAPI Gateway,
normally c:/iws/bin/win32/nsapiGateway.dll.
|
- Add the following lines in the NameTrans section in
<Object name=default> to the obj.conf file.
NameTrans fn=assign-name from=alias* name=object
alias
|
the URI used to access the iServer NSAPI Gateway,
normally /servlet.
|
object
|
the name of the NSAPI Gateway object, normally igateway.
|
- Add the following lines after <Object name=default> to
the obj.conf file.
<Object name="object">
ObjectType fn=force-type type=magnus-internal/servlet
Service fn=process_request
method="(methods)"
type=magnus-internal/servlet
debug=debug
server=host_name:port
interval=interval
retry=retry
</Object>
debug
|
whether to make a dump of the request/response to
\temp\nsapiGateway.log
[ true | false ],
normally false.
|
host_name
|
the name of the host computer running iServer.
If iServer is running on the same computer as the iServer NSAPI Gateway
then localhost can be used.
|
interval
|
the number of milliseconds to wait before attempting to
retry a workgroup server that is down, a value greater than
or equal to 50 ms, normally 1000 ms.
|
methods
|
the request methods to use,
normally GET|POST|HEAD.
|
object
|
the name of the NSAPI Gateway object, normally igateway.
|
port
|
is the port number iServer is listening on,
normally port 8080.
|
retry
|
the number of workgroup server to try to connect to,
normally the number of servers defined.
|
Notes:
A separate Server parameter must be entered for each workgroup server.
Example:
Init fn=load-modules funcs=process_request
shlib="c:/iws/bin/win32/nsapiGateway.dll"
NameTrans fn=assign-name
from=/files* name=igateway_files
NameTrans fn=assign-name
from=/images* name=igateway_images
NameTrans fn=assign-name
from=/cgi-bin* name=igateway_cgibin
NameTrans fn=assign-name
from=/* name=igateway_default
<Object name=igateway_images>
ObjectType fn=force-type
type=magnus-internal/servlet
Service fn=process_request
method="(GET|POST|HEAD)"
type=magnus-internal/servlet
debug=false
server=p6:8080
server=p7:8080
interval=1000
retry=2
</Object>
<Object name=igateway_files>
ObjectType fn=force-type
type=magnus-internal/servlet
Service fn=process_request
method="(GET|POST|HEAD)"
type=magnus-internal/servlet
debug=false
server=p6:8080
server=p7:8080
interval=1000
retry=2
</Object>
<Object name=igateway_cgibin>
ObjectType fn=force-type
type=magnus-internal/servlet
Service fn=process_request
method="(GET|POST|HEAD)"
type=magnus-internal/servlet
debug=false
server=p5:8080
interval=1000
retry=1
</Object>
<Object name=igateway_root>
ObjectType fn=force-type
type=magnus-internal/servlet
Service fn=process_request
method="(GET|POST|HEAD)"
type=magnus-internal/servlet
debug=false
server=p1:8080
server=p2:8080
server=p3:8080
server=p4:8080
interval=1000
retry=4
</Object>
- Restart the computer.
|
|