Home
News
Products
Internet Server
Features
FAQs
Download
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Reference
Samples
.NET Edition
aJile Edition
EJC Edition
SNAP Edition
TINI Edition
POS
.NET Edition
Jenie
SFC
iScript
iMake
iPP
File Upload
Support
Legal
About
Contact Us
|
Use the instructions below to configure the Netscape FastTrack, Enterprise
Server or other Application/Web Servers supporting NSAPI to use Servertec
Internet Server as their Servlet Engine.
- Install and configure Servertec Internet Server.
- 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 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 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 computer running Servertec Internet Server.
localhost can be used if both servers are running on the same
computer.
|
|
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 Servertec Internet Server 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.
|
|