metaproxy — Metaproxy - server
metaproxy
[--help
] [--version
] [--config
] [config
-D
] [-l
] [logfile
-p
] [pidfile
-u
] [ID
-w
] [dir
-X
]
Displays help message.
Displays Metaproxy version.
config
Specify the configuration.
Puts Metaproxy in the background after startup.
logfile
Specifies YAZ log file.
pidfile
Specifies file which holds PID after startup.
ID
Makes Metaproxy changes its identity to ID after startup.
dir
Changes working directory to dir
.
Makes Metaproxy operate in debug mode.
Metaproxy's configuration is XML based. All elements
should be in namespace http://indexdata.com/metaproxy
.
The root element must be named metaproxy
and
must specify a version. Currently the version must be
1.0
. The children elements of metaproxy
are:
Specifies the path for Loadable filter modules
Specifies the start route. Takes a route
attribute with the name of the route.
Specifies all filters. Includes one ore more
filter
elements with filter-specific
configuration material.
Specifies all routes. Includes one or more
route
elements. Each route
in turn includes one or more filter specifications.
The configuration is described in more detail in the Metaproxy manual.
The configuration below specifies a simple Z39.50 proxy and illustrates most configuration elements of Metaproxy.
<?xml version="1.0"?> <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0"> <dlpath>/usr/local/metaproxy/filters</dlpath> <start route="start"/> <filters> <filter id="frontend" type="frontend_net"> <threads>10</threads> <port>@:9000</port> </filter> <filter id="backend" type="z3950_client"> <timeout>30</timeout> <default_target>z3950.indexdata.dk</default_target> </filter> </filters> <routes> <route id="start"> <filter refid="frontend"/> <filter type="log"> <message>log</message> </filter> <filter refid="backend"/> <filter type="bounce"/> </route> </routes> </metaproxy>
Start server with configuration in my.xml
.
metaproxy --config my.xml
auth_simple(3mp), backend_test(3mp), bounce(3mp), frontend_net(3mp), http_file(3mp), log(3mp), multi(3mp), query_rewrite(3mp), record_transform(3mp), session_shared(3mp), sru_z3950(3mp), template(3mp), virt_db(3mp), z3950_client(3mp).
The Metaproxy manual.