corrected SRU yazserver setup
[idzebra-moved-to-github.git] / examples / oai-pmh / conf / yazserver.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- this file configures the frontend YAZ server -->
4 <!-- see: http://www.indexdata.com/yaz/doc/server.vhosts.tkl -->
5 <yazgfs>
6
7   <!-- one or more ports to listen to -->
8   <listen id="tcp9999">tcp:@:9999</listen>
9   
10   <!-- one or more servers bound to ports - multiple servers on same
11        ports possible -->
12   <server id="oai" listenref="tcp9999">
13     
14     <!-- working directory for zebra -->
15     <directory>./</directory>
16     
17     <!-- ordinary config file for zebra -->
18     <config>conf/zebra.cfg</config>
19     
20     <!-- location of CQL-to-PQF file 
21          see: http://www.indexdata.com/yaz/doc/tools.tkl#tools.cql.map -->
22     <cql2rpn>conf/cql2pqf.txt</cql2rpn>
23     
24     <!-- explain message - send in SRW Explain
25          - yes, we understand Z39.50 and SRW on the same port !! -->
26     <xi:include href="explain.xml"
27                 xmlns:xi="http://www.w3.org/2001/XInclude">
28       <xi:fallback>
29         <explain xmlns="http://explain.z3950.org/dtd/2.0/">
30           <serverInfo>
31             <host>localhost</host>
32             <port>9999</port>
33             <database>Default</database>
34           </serverInfo>
35         </explain>
36       </xi:fallback>
37     </xi:include>
38     
39   </server>
40   
41 </yazgfs>