![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 40](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653040.webp)
Flow of Control in obj.conf
40
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
The server continues processing all
ObjectType
directives including those in the
default object, but since the
type
attribute has already been set, no other directive
can set it to another value.
Service
Next, the server needs to execute a
Service
directive to generate the response to
send to the client. The server looks at each
Service
directive in turn, to find the
first one that matches the type, method and query string. If a
Service
directive
does not specify type, method, or query string, then the unspecified attribute
matches anything.
If there is more than one
Service
directive, the server applies the first one that
matches the conditions of the request, and ignores all remaining
Service
directives.
As with the
PathCheck
and
ObjectType
directives, if another object has been
matched to the request as a result of the
NameTrans
step, the server considers the
Service
directives in the matching object before considering the ones in the default
object. If the server successfully executes a
Service
directive in the matching
object, it will not get round to executing the
Service
directives in the default
object, since it only executes one
Service
directive.
Service Examples
For an example of how
Service
directives work, consider what happens when the
server receives a request for the URL
D:/
server_name
/jos.html
. In this case, all
directives executed by the server are in the default object.
•
The following
NameTrans
directive translates the requested URL to
D:/netscape/servers/docs/jos.html
:
NameTrans fn="document-root" root="D:/Netscape/Servers/docs"
•
Assume that the
PathCheck
directives all succeed.
NameTrans fn="pfx2dir" from="/cgi"
dir="D:/netscape/servers/docs/mycgi" name="cgi"
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...