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