Tiny example update
[pazpar2-moved-to-github.git] / README
1 How to use this:
2
3 Usage: pazpar2 -f configfile -h [listen-host:]listen-port -p host-to-proxy -s targetfile
4
5 The host-to-proxy is the webserver where the user interface script
6 lives. It is used both for domain-name lookup and the contents of
7 the Host: header in rerquests that are proxied, so it's important
8 that the hostname is recognized by the webserver.
9
10 There are a few main target files:
11
12 test.pz: Single target, localhost:9999/Default -- use with
13         yaz-ztest or a local Zebra test.
14
15 slow.pz: Single target, localhost:9999/Slow -- triggers a slow
16         search response, useful for testing some stuff.
17
18 bibs.pz: A small set of serious catalogs in the US and Canada.
19
20 many.pz: Obscenely many catalogs.
21
22 Example:
23
24 Testing against ztest with Apache running on localhost port 80, pazpar
25 running on 8000. DocumentRoot in /var/www.
26
27 Fire up yaz-ztest
28         yaz-ztest
29
30 Fire up pazpar2
31         sudo cp -a www/* /var/www
32         cd etc
33         cp pazpar2.cfg.dist pazpart2.cfg # edit port + proxy
34         ../src/pazpar2 -f pazpar2.cfg -t ../etc/testserver.xml
35
36 Fire up your browser:
37         http://localhost:8000/test1/index.html