|
|
|
Index Data
>
YAZ Proxy
>
YAZ proxy User's Guide and Reference
>
Choosing the Backend Server
Choosing the Backend Server
When the proxy receives a Z39.50 Initialize Request from a Z39.50
client, it determines the backend server by the following rules:
-
If the InitializeRequest PDU from the
client includes an
otherInfo
element with OID
1.2.840.10003.10.1000.81.1, then the
contents of that element specify the server to be used, in the
usual YAZ address format (typically
tcp:
hostname
:
port
)
as described in
the Addresses section of the YAZ manual.
-
Otherwise, the Proxy uses the default server, if one was
specified in the proxy configuration file. See
the section called “target”.
-
Otherwise, the Proxy uses the default server, if one was
specified on the command-line with the -t
option.
-
Otherwise, the proxy closes the connection with
the client.
If the proxy receives an SRU request, the following rules are used.
-
If default target has Explain information with a
database that matches the path of the
HTTP request of SRU that backend server is used for SRU operation.
-
Otherwise the service will return HTTP 404 (Not found).
|