From: Adam Dickmeiss Date: Mon, 3 Nov 2003 10:46:52 +0000 (+0000) Subject: Use example tag. Using Apache as SRW/SRU frontend X-Git-Tag: YAZ.2.0.6~53 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=96ca9f70fe68d941a7604f3dd1a6d5817556ddf0;p=yaz-moved-to-github.git Use example tag. Using Apache as SRW/SRU frontend --- diff --git a/doc/frontend.xml b/doc/frontend.xml index cbb533a..a455153 100644 --- a/doc/frontend.xml +++ b/doc/frontend.xml @@ -1,4 +1,4 @@ - + Generic server Introduction @@ -13,7 +13,7 @@ If you have a database system that you would like to make available by - means of Z39.50 or SRW, &yaz; basically offers your two options. You + means of Z39.50, SRW o SRU, &yaz; basically offers your two options. You can use the APIs provided by the &asn;, &odr;, and &comstack; modules to create and decode PDUs, and exchange them with a client. @@ -774,22 +774,59 @@ typedef struct bend_scan_rr { - For TCP/IP and SSL, the special hostname "@" is mapped to - the address INADDR_ANY, which causes the - server to listen on any local interface. - - - - Examples: - - tcp:@:210 - - ssl:@:3000 - - unix:/tmp/yaz - + For TCP/IP and SSL, the special hostname @ + (at sign) is mapped to the address INADDR_ANY, + which causes the server to listen on any local interface. + Running the GFS on Unix + + Assuming the server application appname is + started as root, the following will make it listen on port 210. + The server will change identity to nobody + and write its log to /var/log/app.log. + + appname -l /var/log/app.log -u nobody tcp:@:210 + + + + The server will accept Z39.50 requests and offer SRW/SRU service + on port 210. + + + Setting up Apache as SRW/SRU Frontend + + If you use Apache + as your public web server and want to offer HTTP port 80 + access to the YAZ server on 210, you can use the + + ProxyPass + directive. + If you have virtual host + srw.mydomain you can use the following directives + in Apache's httpd.conf: + + <VirtualHost *> + ErrorLog /home/srw/logs/error_log + TransferLog /home/srw/logs/access_log + ProxyPass / http://srw.mydomain:210/ + </VirualHost> + + + + The above for the Apache 1.3 series. + + + Running a aerver with local access only + + Servers that is only being accessed from the local host should listen + on UNIX file socket rather than a Internet socket. To listen on + /tmp/mysocket start the server as follows: + + appname tcp:/tmp/mysocket + + +