annotate docu/installation.html @ 144:d87a7e2515af

Sevlet version 1.12b5 - improved scaling also for ImageLoaderDocuImage
author robcast
date Tue, 19 Aug 2003 22:31:48 +0200
parents 28e449fa185c
children 7a237ba63a3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
37eae12d4148 Initial revision
robcast
parents:
diff changeset
2 <html>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
3 <head>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
4 <title>Installation of alcatraz/digilib</title>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
5 </head>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
6
37eae12d4148 Initial revision
robcast
parents:
diff changeset
7 <body>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
8 <h1>What you need to install digilib</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
9
37eae12d4148 Initial revision
robcast
parents:
diff changeset
10 <ul>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
11 <li>Java JDK &gt;1.2 (preferred 1.4 and up)</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
12
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
13 <li><a href="http://jakarta.apache.org/tomcat/index.html" >Jakarta
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
14 Tomcat</a> version 4 or later (preferred 4.1 and up) from
27
dd49040ae5a5 Update links to developer.berlios.de
robcast
parents: 22
diff changeset
15 <a href="http://jakarta.apache.org<" >http://jakarta.apache.org</a></li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
16
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
17 <li>The digilib distribution packages (from
27
dd49040ae5a5 Update links to developer.berlios.de
robcast
parents: 22
diff changeset
18 <a href="http://developer.berlios.de" >http://developer.berlios.de</a>)
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
19 <ul>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
20 <li>alcatraz/digilib scripts and servlets package
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
21 <a href="http://download.berlios.de/digilib/alcatraz-core-0.3.zip"><code>alcatraz-core.zip</code></a></li>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
22 <li>digilib configuration files for tomcat 4 package
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
23 <a href="http://download.berlios.de/digilib/alcatraz-tomconf-0.1.zip"><code>alcatraz-tomconf.zip</code></a> (Not essential)</li>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
24 </ul>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
25 </li>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
26 </ul>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
27
37eae12d4148 Initial revision
robcast
parents:
diff changeset
28 <h1>Installation</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
29
37eae12d4148 Initial revision
robcast
parents:
diff changeset
30 <h2>On Linux</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
31
37eae12d4148 Initial revision
robcast
parents:
diff changeset
32 <ol>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
33 <li>Make shure the Java JDK is installed (a JRE won't do).</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
34
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
35 <li>Create a base directory for docuserver (the default used here is
37eae12d4148 Initial revision
robcast
parents:
diff changeset
36 <code>/docuserver</code>) and for the web interface
37eae12d4148 Initial revision
robcast
parents:
diff changeset
37 (<code>/docuserver/www</code>).</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
38
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
39 <li>Unpack the <code>alcatraz-core</code> package in the web
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
40 interface directory (<code>/docuserver/www</code>). This will create
37eae12d4148 Initial revision
robcast
parents:
diff changeset
41 the digilib directory <code>digitallibrary</code>.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
42
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
43 <li>Unpack Jakarta Tomcat 4.1.24 in <code>/docuserver</code> This should
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
44 produce a directory <code>/docuserver/jakarta-tomcat-4.1.24</code>. Create a
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
45 link <code>/docuserver/tomcat</code> to the new directory.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
46
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
47 <li>(optional) Unpack the configuration files package
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
48 <code>digilib-tomconf</code> in the tomcat directory.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
49
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
50 <li>Create a link from the digilib directory into the Tomcat webapps
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
51 directory <code>/docuserver/tomcat/webapps</code> (type <code>ln -s
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
52 /docuserver/www/digitallibrary /docuserver/tomcat/webapps</code>) This is
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
53 the default installation running on port 8080 as
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
54 <code>http://myserver:8080/digitallibrary/</code>.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
55
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
56 <li>Adjust the path to the JDK and its options in
37eae12d4148 Initial revision
robcast
parents:
diff changeset
57 <code>catalina.sh</code> (in the directory
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
58 <code>/docuserver/tomcat/bin</code>, see below for details)</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
59
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
60 <li>(optional) For SuSE Linux you can use the startup skript
37eae12d4148 Initial revision
robcast
parents:
diff changeset
61 <code>tomcat/bin/rctomcat</code>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
62 to start and stop the tomcat server. Copy the script into
37eae12d4148 Initial revision
robcast
parents:
diff changeset
63 <code>/etc/init.d</code> as <code>tomcat</code> and set runlevel
37eae12d4148 Initial revision
robcast
parents:
diff changeset
64 links accordingly.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
65
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
66 <li>(optional) Set the tomcat directory and all files to be owned by
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
67 the user <code>wwwrun</code> (or whatever your webserver runs) and
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
68 use this account to start the tomcat server.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
69
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
70 <li>(optional) To use Mozilla-XUL functionality Alcatraz users have
28e449fa185c small updates
robcast
parents: 108
diff changeset
71 to open the page
28e449fa185c small updates
robcast
parents: 108
diff changeset
72 <code>http://myserver:8080/docuserver/digitallibrary/xul/install.html</code>
28e449fa185c small updates
robcast
parents: 108
diff changeset
73 in a Mozilla compatible browser. There the users can find
28e449fa185c small updates
robcast
parents: 108
diff changeset
74 instructions to install XUL-Components into their browser. </li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
75
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
76 </ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
77
37eae12d4148 Initial revision
robcast
parents:
diff changeset
78
37eae12d4148 Initial revision
robcast
parents:
diff changeset
79 <!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
80 <h2>Apache connector module</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
81
37eae12d4148 Initial revision
robcast
parents:
diff changeset
82 <p>digilib currently needs to be accessed through the Apache
37eae12d4148 Initial revision
robcast
parents:
diff changeset
83 webserver. There are two possible connectors for Apache and Tomcat4:
37eae12d4148 Initial revision
robcast
parents:
diff changeset
84 <code>mod_webapp</code> and <code>mod_jk</code>. Only
37eae12d4148 Initial revision
robcast
parents:
diff changeset
85 <code>mod_webapp</code> has been tested so far.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
86
37eae12d4148 Initial revision
robcast
parents:
diff changeset
87 <ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
88 <li>Get the sources for <code>mod_webapp</code></li>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
89 </ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
90 -->
37eae12d4148 Initial revision
robcast
parents:
diff changeset
91
37eae12d4148 Initial revision
robcast
parents:
diff changeset
92 <h1>Configuration</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
93
37eae12d4148 Initial revision
robcast
parents:
diff changeset
94 <h2>Tomcat</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
95
37eae12d4148 Initial revision
robcast
parents:
diff changeset
96 <h3>catalina.sh</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
97
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
98 <p>The file <code>catalina.sh</code> (in <code>/docuserver/tomcat/bin</code>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
99 can be modified to provide the path to the JDK and runtime options
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
100 for the Java VM. Somewhere at the beginning of the file you can put two lines
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
101 like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
102
37eae12d4148 Initial revision
robcast
parents:
diff changeset
103 <pre>
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
104 export JAVA_HOME=/usr/local/lib/IBMJava2-14
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
105 export CATALINA_OPTS="-mx512m"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
106 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
107
37eae12d4148 Initial revision
robcast
parents:
diff changeset
108 <p>Adjust the <code>JAVA_HOME</code> path to point to your Java JDK
37eae12d4148 Initial revision
robcast
parents:
diff changeset
109 installation directory. You can adjust the memory used by the Java VM
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
110 with the <code>-mx</code> option.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
111
37eae12d4148 Initial revision
robcast
parents:
diff changeset
112 <p>You can delete those two lines if you set these variables in your
37eae12d4148 Initial revision
robcast
parents:
diff changeset
113 shell before starting tomcat in that same shell. These lines are
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
114 needed if you want to use the startup script mentioned above under
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
115 linux .</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
116
37eae12d4148 Initial revision
robcast
parents:
diff changeset
117
37eae12d4148 Initial revision
robcast
parents:
diff changeset
118 <h3>tomcat-users.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
119
37eae12d4148 Initial revision
robcast
parents:
diff changeset
120 <p>All passwords and usernames have to be set up in the file
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
121 <code>tomcat-users.xml</code> in <code>/docuserver/tomcat/conf</code> if you
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
122 want to use authentication in digilib. The file looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
123
37eae12d4148 Initial revision
robcast
parents:
diff changeset
124 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
125 &lt;tomcat-users&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
126 &lt;user name="tomcat" password="tomcat" roles="tomcat" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
127 &lt;user name="role1" password="tomcat" roles="role1" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
128 &lt;user name="both" password="tomcat" roles="tomcat,role1" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
129 &lt;/tomcat-users&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
130 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
131
37eae12d4148 Initial revision
robcast
parents:
diff changeset
132 <p>A user is identified by a <code>name</code> and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
133 <code>password</code>. These two elements have to be entered in a
37eae12d4148 Initial revision
robcast
parents:
diff changeset
134 authentication form presented by the browser when accessing a
37eae12d4148 Initial revision
robcast
parents:
diff changeset
135 restricted resource. A user can have one or more
37eae12d4148 Initial revision
robcast
parents:
diff changeset
136 <code>roles</code>. These roles will be used by digilib to decide if
37eae12d4148 Initial revision
robcast
parents:
diff changeset
137 an authenticated user is allowed to access a document (see
37eae12d4148 Initial revision
robcast
parents:
diff changeset
138 <code>digilib-auth.xml</code> below).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
139
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
140 <p>If you want to use the webinterface to configure Tomcat, you have to
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
141 add administrational account with the roles <code>admin</code> and
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
142 <code>manager</code>.</p>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
143
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
144 <p>tomcat has to be restarted before changes to
37eae12d4148 Initial revision
robcast
parents:
diff changeset
145 <code>tomcat-users.xml</code> have effect!</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
146
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
147
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
148 <h2>Digilib</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
149
37eae12d4148 Initial revision
robcast
parents:
diff changeset
150 <h3>web.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
151
37eae12d4148 Initial revision
robcast
parents:
diff changeset
152 <p>The deployment of the digilib servlets and JSPs is defined in the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
153 file <code>web.xml</code> in the <code>WEB-INF</code> subdirectory of
37eae12d4148 Initial revision
robcast
parents:
diff changeset
154 the digilib directory
37eae12d4148 Initial revision
robcast
parents:
diff changeset
155 (<code>/docuserver/www/digitallibrary/WEB-INF</code>).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
156
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
157 <p>The only parameter you will have to adjust is the position of the
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
158 digilib configuration file. The parameter occurs twice in the file and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
159 looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
160
37eae12d4148 Initial revision
robcast
parents:
diff changeset
161 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
162 &lt;!-- parameters to the servlet --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
163 &lt;init-param&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
164 &lt;param-name&gt;config-file&lt;/param-name&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
165 &lt;param-value&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
166 <b>/docuserver/www/digitallibrary/WEB-INF/digilib-config.xml</b>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
167 &lt;/param-value&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
168 &lt;/init-param&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
169 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
170
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
171 <p>Change the path to point where you installed the configuration files.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
172
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
173 <p>Make shure to change the parameter in both places in the config
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
174 file! It is needed both for the servlet and the JSP pages!</p>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
175
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
176
37eae12d4148 Initial revision
robcast
parents:
diff changeset
177 <h3>digilib-config.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
178
37eae12d4148 Initial revision
robcast
parents:
diff changeset
179 <p>The main configuration for digilib is
37eae12d4148 Initial revision
robcast
parents:
diff changeset
180 <code>digilib-config.xml</code>. It's position is defined by the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
181 <code>config-file</code> init-parameter to the servlets (see
37eae12d4148 Initial revision
robcast
parents:
diff changeset
182 above).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
183
37eae12d4148 Initial revision
robcast
parents:
diff changeset
184 <p>In the configuration file you can set several paths and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
185 options. The file looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
186
37eae12d4148 Initial revision
robcast
parents:
diff changeset
187 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
188 &lt;!-- Digilib servlet config file --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
189
37eae12d4148 Initial revision
robcast
parents:
diff changeset
190 &lt;digilib-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
191 &lt;parameter name="debug-level" value="0" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
192
37eae12d4148 Initial revision
robcast
parents:
diff changeset
193 &lt;!-- Image to be sent to indicate general failure. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
194 &lt;parameter name="error-image" value=<b>"/docuserver/images/icons/broken.gif"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
195
37eae12d4148 Initial revision
robcast
parents:
diff changeset
196 &lt;!-- Image to be sent to indicate authorization failure. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
197 &lt;parameter name="denied-image" value=<b>"/docuserver/images/icons/alert.red.gif"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
198
37eae12d4148 Initial revision
robcast
parents:
diff changeset
199 &lt;!-- List of directories where images are searched.
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
200 The authoritative directory with the high-resolution images
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
201 is first in list. --&gt;
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
202 &lt;parameter name="basedir-list" value=<b>"/docuserver/images:/docuserver/scaled/small"</b> /&gt;
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
203
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
204 &lt;!-- Java class to use for image operations --&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
205 &lt;parameter name="docuimage-class" value="digilib.image.JAIDocuImage" /&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
206
28e449fa185c small updates
robcast
parents: 108
diff changeset
207 &lt;!-- is sending whole image files with mo=file allowed? --&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
208 &lt;parameter name="sendfile-allowed" value="true" /&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
209
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
210 &lt;!-- Restrict access to authorized users.
37eae12d4148 Initial revision
robcast
parents:
diff changeset
211 User authentication and roles are provided by the servlet container
37eae12d4148 Initial revision
robcast
parents:
diff changeset
212 (see tomcat-users.xml).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
213 Authorization for resources (directories) is evaluated by the servlet
37eae12d4148 Initial revision
robcast
parents:
diff changeset
214 (see auth-file). --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
215 &lt;parameter name="use-authorization" value="true" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
216
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
217 &lt;!-- Location of XML file with authorization requirements. --&gt;
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
218 &lt;parameter name="auth-file" value=<b>"/docuserver/www/digitallibrary/WEB-INF/digilib-auth.xml"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
219
37eae12d4148 Initial revision
robcast
parents:
diff changeset
220 &lt;!-- Part of URL to indicate authenticated access to Tomcat. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
221 &lt;parameter name="auth-url-path" value="authenticated/" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
222 &lt;/digilib-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
223 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
224
37eae12d4148 Initial revision
robcast
parents:
diff changeset
225 <p>You have to adjust the <code>basedir-list</code> parameter to the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
226 directories where your images are installed. You need only one
37eae12d4148 Initial revision
robcast
parents:
diff changeset
227 directory if you do not have prescaled low resolution versions of your
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
228 images. The directory with the high-resolution versions must be the
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
229 first entry in the list.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
230
37eae12d4148 Initial revision
robcast
parents:
diff changeset
231 <p>You can supply your own images for the &quot;error&quot; and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
232 &quot;access denied&quot; messages by the servlet. Standard images
37eae12d4148 Initial revision
robcast
parents:
diff changeset
233 will be used if these parameters are undefined.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
234
37eae12d4148 Initial revision
robcast
parents:
diff changeset
235 <p>The <code>auth-file</code> parameter has to point to the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
236 authorization configuration file (see below).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
237
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
238 <p>You can specify the Java toolkit implementation with the
28e449fa185c small updates
robcast
parents: 108
diff changeset
239 <code>docuimage-class</code> parameter. The
28e449fa185c small updates
robcast
parents: 108
diff changeset
240 <code>ImageLoaderDocuImage</code> might give best performance but
28e449fa185c small updates
robcast
parents: 108
diff changeset
241 works only with JDK 1.4 and up. <code>JAIDocuImage</code> works with
28e449fa185c small updates
robcast
parents: 108
diff changeset
242 JDK 1.3 and up.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
243
37eae12d4148 Initial revision
robcast
parents:
diff changeset
244 <h3>digilib-auth.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
245
37eae12d4148 Initial revision
robcast
parents:
diff changeset
246 <p>The digilib access authorization is defined in the file defined by
37eae12d4148 Initial revision
robcast
parents:
diff changeset
247 the <code>auth-file</code> parameter (usually
37eae12d4148 Initial revision
robcast
parents:
diff changeset
248 <code>digilib-auth.xml</code> in <code>WEB-INF</code>). </p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
249
37eae12d4148 Initial revision
robcast
parents:
diff changeset
250 <p>The file has two parts <code>diglib-paths</code> and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
251 <code>diglib-addresses</code>. It looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
252
37eae12d4148 Initial revision
robcast
parents:
diff changeset
253 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
254 &lt;auth-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
255
37eae12d4148 Initial revision
robcast
parents:
diff changeset
256 &lt;digilib-paths&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
257 &lt;!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
258 A user must supply one of the roles under "role"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
259 to access the directory "name".
37eae12d4148 Initial revision
robcast
parents:
diff changeset
260 Roles under "role" must be separated by comma only (no spaces).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
261 --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
262 &lt;path name="histast/eastwood-collection" role="eastwood-coll" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
263 &lt;path name="ptolemaios_geo" role="ptolemaios-geo" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
264 &lt;/digilib-paths&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
265
37eae12d4148 Initial revision
robcast
parents:
diff changeset
266 &lt;digilib-addresses&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
267 &lt;!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
268 A computer with an ip address that matches "ip"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
269 is automatically granted all roles under "role".
37eae12d4148 Initial revision
robcast
parents:
diff changeset
270 The ip address is matched from the left (in full quads).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
271 Roles under "role" must be separated by comma only (no spaces).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
272 --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
273 &lt;address ip="127" role="local" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
274 &lt;address ip="130.92.68" role="eastwood-coll,ptolemaios-geo" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
275 &lt;address ip="130.92.151" role="ALL" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
276 &lt;/digilib-addresses&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
277
37eae12d4148 Initial revision
robcast
parents:
diff changeset
278 &lt;/auth-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
279 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
280
37eae12d4148 Initial revision
robcast
parents:
diff changeset
281 <p><code>diglib-paths</code> defines restricted directories and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
282 the roles needed for access. The roles are defined with the users in
37eae12d4148 Initial revision
robcast
parents:
diff changeset
283 <code>tomcat-users.xml</code> (see above). All subdirectories of the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
284 given directories have the same restrictions. All directories not
37eae12d4148 Initial revision
robcast
parents:
diff changeset
285 listed here (and not subdirectories of listed directories) are freely
37eae12d4148 Initial revision
robcast
parents:
diff changeset
286 accessible.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
287
37eae12d4148 Initial revision
robcast
parents:
diff changeset
288 <p><code>diglib-addresses</code> defines hosts or networks of
37eae12d4148 Initial revision
robcast
parents:
diff changeset
289 computers that are automatically authenticated without username and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
290 password. Hosts can be assigned roles. The special keyword <code>ALL</code>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
291 authorizes for everything. If the role assigned to the computer is not
37eae12d4148 Initial revision
robcast
parents:
diff changeset
292 sufficient to access a resource the user will be asked for username
37eae12d4148 Initial revision
robcast
parents:
diff changeset
293 and password.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
294
37eae12d4148 Initial revision
robcast
parents:
diff changeset
295
37eae12d4148 Initial revision
robcast
parents:
diff changeset
296
37eae12d4148 Initial revision
robcast
parents:
diff changeset
297 <hr>
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
298 <address>casties@mpiwg-berlin.mpg.de</address>
28e449fa185c small updates
robcast
parents: 108
diff changeset
299 <!-- hhmts start -->Last modified: Wed May 14 12:49:14 CEST 2003 <!-- hhmts end -->
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
300 </body> </html>