Debian Codegraph @

htdoc/config.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <html>
3 <head>
4 <title>
5 ht://Dig: Configuration
6 </title>
7 </head>
8 <body bgcolor="#eef7ff">
9 <h1>
10 Configuration
11 </h1>
12 <p>
13 ht://Dig Copyright &copy; 1995-2004 <a href="THANKS.html">The ht://Dig Group</a><br>
14 Please see the file <a href="COPYING">COPYING</a> for
15 license information.
16 </p>
17 <hr size="4" noshade>
18 <p>
19 ht://Dig requires a configuration file and several HTML files
20 to operate correctly. Fortunately, when ht://Dig is
21 installed, a very reasonable configuration is created and in
22 most cases only minor modifications to the files are
23 necessary.
24 </p>
25 <p>
26 Below, we will use the variables that were set in CONFIG to
27 designate specific paths.
28 </p>
29 <p>
30 Standard files:
31 </p>
32 <ul>
33 <li>
34 <a href="#htdig.conf">${CONFIG_DIR}/htdig.conf</a>
35 </li>
36 <li>
37 <a href="#search.html">${SEARCH_DIR}/search.html</a>
38 </li>
39 <li>
40 <a href="#header.html">${COMMON_DIR}/header.html</a>
41 </li>
42 <li>
43 <a href="#footer.html">${COMMON_DIR}/footer.html</a>
44 </li>
45 <li>
46 <a href="#wrapper.html">${COMMON_DIR}/wrapper.html</a>
47 </li>
48 <li>
49 <a href="#nomatch.html">${COMMON_DIR}/nomatch.html</a>
50 </li>
51 <li>
52 <a href="#syntax.html">${COMMON_DIR}/syntax.html</a>
53 </li>
54 </ul>
55 <hr noshade>
56 <h2>
57 <a name="#htdig.conf">${CONFIG_DIR}/htdig.conf</a>
58 </h2>
59 <p>
60 This is the main runtime configuration file for all programs
61 that make up ht://Dig. The file is fully described in the
62 <a href="confindex.html" target="_top">Configuration file
63 manual</a>.
64 </p>
65 <p>
66 When ht://Dig is installed, several attributes will be
67 customized to your particular environment, but for reference,
68 here is a sample copy of what it can look like:
69 </p>
70 <pre>
71 <font size="-1">
72 #
73 # Example config file for ht://Dig.
74 #
75 # This configuration file is used by all the programs that make up ht://Dig.
76 # Please refer to the attribute reference manual for more details on what
77 # can be put into this file. (http://www.htdig.org/confindex.html)
78 # Note that most attributes have very reasonable default values so you
79 # really only have to add attributes here if you want to change the defaults.
80 #
81 # What follows are some of the common attributes you might want to change.
82 #
83
84 #
85 # Specify where the database files need to go. Make sure that there is
86 # plenty of free disk space available for the databases. They can get
87 # pretty big.
88 #
89 database_dir: /opt/www/htdig/db
90
91 #
92 # This specifies the URL where the robot (htdig) will start. You can specify
93 # multiple URLs here. Just separate them by some whitespace.
94 # The example here will cause the ht://Dig homepage and related pages to be
95 # indexed.
96 # You could also index all the URLs in a file like so:
97 # start_url: `${common_dir}/start.url`
98 #
99 start_url: http://www.htdig.org/
100
101 #
102 # This attribute limits the scope of the indexing process. The default is to
103 # set it to the same as the start_url above. This way only pages that are on
104 # the sites specified in the start_url attribute will be indexed and it will
105 # reject any URLs that go outside of those sites.
106 #
107 # Keep in mind that the value for this attribute is just a list of string
108 # patterns. As long as URLs contain at least one of the patterns it will be
109 # seen as part of the scope of the index.
110 #
111 limit_urls_to: ${start_url}
112
113 #
114 # If there are particular pages that you definitely do NOT want to index, you
115 # can use the exclude_urls attribute. The value is a list of string patterns.
116 # If a URL matches any of the patterns, it will NOT be indexed. This is
117 # useful to exclude things like virtual web trees or database accesses. By
118 # default, all CGI URLs will be excluded. (Note that the /cgi-bin/ convention
119 # may not work on your web server. Check the path prefix used on your web
120 # server.)
121 #
122 exclude_urls: /cgi-bin/ .cgi
123
124 #
125 # Since ht://Dig does not (and cannot) parse every document type, this
126 # attribute is a list of strings (extensions) that will be ignored during
127 # indexing. These are *only* checked at the end of a URL, whereas
128 # exclude_url patterns are matched anywhere.
129 #
130 # Also keep in mind that while other attributes allow regex, these must be
131 # actual strings.
132 #
133 bad_extensions: .wav .gz .z .sit .au .zip .tar .hqx .exe .com .gif \
134 .jpg .jpeg .aiff .class .map .ram .tgz .bin .rpm .mpg .mov .avi .css
135
136 #
137 # The string htdig will send in every request to identify the robot. Change
138 # this to your email address.
139 #
140 maintainer: [email protected]
141
142 #
143 # The excerpts that are displayed in long results rely on stored information
144 # in the index databases. The compiled default only stores 512 characters of
145 # text from each document (this excludes any HTML markup...) If you plan on
146 # using the excerpts you probably want to make this larger. The only concern
147 # here is that more disk space is going to be needed to store the additional
148 # information. Since disk space is cheap (! :-)) you might want to set this
149 # to a value so that a large percentage of the documents that you are going
150 # to be indexing are stored completely in the database. At SDSU we found
151 # that by setting this value to about 50k the index would get 97% of all
152 # documents completely and only 3% was cut off at 50k. You probably want to
153 # experiment with this value.
154 # Note that if you want to set this value low, you probably want to set the
155 # excerpt_show_top attribute to false so that the top excerpt_length characters
156 # of the document are always shown.
157 #
158 max_head_length: 10000
159
160 #
161 # To limit network connections, ht://Dig will only pull up to a certain limit
162 # of bytes. This prevents the indexing from dying because the server keeps
163 # sending information. However, several FAQs happen because people have files
164 # bigger than the default limit of 100KB. This sets the default a bit higher.
165 # (see &lt;http://www.htdig.org/FAQ.html&gt; for more)
166 #
167 max_doc_size: 200000
168
169 #
170 # Most people expect some sort of excerpt in results. By default, if the
171 # search words aren't found in context in the stored excerpt, htsearch shows
172 # the text defined in the no_excerpt_text attribute:
173 # (None of the search words were found in the top of this document.)
174 # This attribute instead will show the top of the excerpt.
175 #
176 no_excerpt_show_top: true
177
178 #
179 # Depending on your needs, you might want to enable some of the fuzzy search
180 # algorithms. There are several to choose from and you can use them in any
181 # combination you feel comfortable with. Each algorithm will get a weight
182 # assigned to it so that in combinations of algorithms, certain algorithms get
183 # preference over others. Note that the weights only affect the ranking of
184 # the results, not the actual searching.
185 # The available algorithms are:
186 # accents
187 # exact
188 # endings
189 # metaphone
190 # prefix
191 # regex
192 # soundex
193 # speling [sic]
194 # substring
195 # synonyms
196 # By default only the "exact" algorithm is used with weight 1.
197 # Note that if you are going to use the endings, metaphone, soundex, accents,
198 # or synonyms algorithms, you will need to run htfuzzy to generate
199 # the databases they use.
200 #
201 search_algorithm: exact:1 synonyms:0.5 endings:0.1
202
203 #
204 # The following are the templates used in the builtin search results
205 # The default is to use compiled versions of these files, which produces
206 # slightly faster results. However, uncommenting these lines makes it
207 # very easy to change the format of search results.
208 # See &lt;http://www.htdig.org/hts_templates.html&gt; for more details.
209 #
210 # template_map: Long long ${common_dir}/long.html \
211 # Short short ${common_dir}/short.html
212 # template_name: long
213
214 #
215 # The following are used to change the text for the page index.
216 # The defaults are just boring text numbers. These images spice
217 # up the result pages quite a bit. (Feel free to do whatever, though)
218 #
219 next_page_text: &lt;img src="/htdig/buttonr.gif" border="0" align="middle" width="30" height="30" alt="next"&gt;
220 no_next_page_text:
221 prev_page_text: &lt;img src="/htdig/buttonl.gif" border="0" align="middle" width="30" height="30" alt="prev"&gt;
222 no_prev_page_text:
223 page_number_text: '&lt;img src="/htdig/button1.gif" border="0" align="middle" width="30" height="30" alt="1"&gt;' \
224 '&lt;img src="/htdig/button2.gif" border="0" align="middle" width="30" height="30" alt="2"&gt;' \
225 '&lt;img src="/htdig/button3.gif" border="0" align="middle" width="30" height="30" alt="3"&gt;' \
226 '&lt;img src="/htdig/button4.gif" border="0" align="middle" width="30" height="30" alt="4"&gt;' \
227 '&lt;img src="/htdig/button5.gif" border="0" align="middle" width="30" height="30" alt="5"&gt;' \
228 '&lt;img src="/htdig/button6.gif" border="0" align="middle" width="30" height="30" alt="6"&gt;' \
229 '&lt;img src="/htdig/button7.gif" border="0" align="middle" width="30" height="30" alt="7"&gt;' \
230 '&lt;img src="/htdig/button8.gif" border="0" align="middle" width="30" height="30" alt="8"&gt;' \
231 '&lt;img src="/htdig/button9.gif" border="0" align="middle" width="30" height="30" alt="9"&gt;' \
232 '&lt;img src="/htdig/button10.gif" border="0" align="middle" width="30" height="30" alt="10"&gt;'
233 #
234 # To make the current page stand out, we will put a border around the
235 # image for that page.
236 #
237 no_page_number_text: '&lt;img src="/htdig/button1.gif" border="2" align="middle" width="30" height="30" alt="1"&gt;' \
238 '&lt;img src="/htdig/button2.gif" border="2" align="middle" width="30" height="30" alt="2"&gt;' \
239 '&lt;img src="/htdig/button3.gif" border="2" align="middle" width="30" height="30" alt="3"&gt;' \
240 '&lt;img src="/htdig/button4.gif" border="2" align="middle" width="30" height="30" alt="4"&gt;' \
241 '&lt;img src="/htdig/button5.gif" border="2" align="middle" width="30" height="30" alt="5"&gt;' \
242 '&lt;img src="/htdig/button6.gif" border="2" align="middle" width="30" height="30" alt="6"&gt;' \
243 '&lt;img src="/htdig/button7.gif" border="2" align="middle" width="30" height="30" alt="7"&gt;' \
244 '&lt;img src="/htdig/button8.gif" border="2" align="middle" width="30" height="30" alt="8"&gt;' \
245 '&lt;img src="/htdig/button9.gif" border="2" align="middle" width="30" height="30" alt="9"&gt;' \
246 '&lt;img src="/htdig/button10.gif" border="2" align="middle" width="30" height="30" alt="10"&gt;'
247 </font>
248 </pre>
249 <hr noshade>
250 <h2>
251 <a name="search.html">${SEARCH_DIR}/search.html</a>
252 </h2>
253 <p>
254 This is the default search form. It is an example interface to
255 the search engine, htsearch. The file contains a form with as
256 its action a call to htsearch. There are several form variables
257 which htsearch will use. More about those can be found in the
258 <a href="htsearch.html" target="_top">htsearch
259 documentation</a>.
260 </p>
261 <p>
262 An example file can be as follows:
263 </p>
264 <pre>
265 <font size="-1">
266 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
267 &lt;html&gt;
268 &lt;head&gt;
269 &lt;title&gt;ht://Dig WWW Search&lt;/title&gt;
270 &lt;/head&gt;
271 &lt;body bgcolor="#eef7ff"&gt;
272 &lt;h1&gt;
273 &lt;a href="http://www.htdig.org"&gt;&lt;IMG SRC="/htdig/htdig.gif" align="bottom" alt="ht://Dig" border="0"&gt;&lt;/a&gt;
274 WWW Site Search&lt;/h1&gt;
275 &lt;hr noshade size="4"&gt;
276 This search will allow you to search the contents of
277 all the publicly available WWW documents at this site.
278 &lt;br&gt;
279 &lt;p&gt;
280 &lt;form method="post" action="/cgi-bin/htsearch"&gt;
281 &lt;font size="-1"&gt;
282 Match: &lt;select name="method"&gt;
283 &lt;option value="and"&gt;All
284 &lt;option value="or"&gt;Any
285 &lt;option value="boolean"&gt;Boolean
286 &lt;/select&gt;
287 Format: &lt;select name="format"&gt;
288 &lt;option value="builtin-long"&gt;Long
289 &lt;option value="builtin-short"&gt;Short
290 &lt;/select&gt;
291 Sort by: &lt;select name="sort"&gt;
292 &lt;option value="score"&gt;Score
293 &lt;option value="time"&gt;Time
294 &lt;option value="title"&gt;Title
295 &lt;option value="revscore"&gt;Reverse Score
296 &lt;option value="revtime"&gt;Reverse Time
297 &lt;option value="revtitle"&gt;Reverse Title
298 &lt;/select&gt;
299 &lt;/font&gt;
300 &lt;input type="hidden" name="config" value="htdig"&gt;
301 &lt;input type="hidden" name="restrict" value=""&gt;
302 &lt;input type="hidden" name="exclude" value=""&gt;
303 &lt;br&gt;
304 Search:
305 &lt;input type="text" size="30" name="words" value=""&gt;
306 &lt;input type="submit" value="Search"&gt;
307 &lt;/form&gt;
308 &lt;hr noshade size="4"&gt;
309 &lt;/body&gt;
310 &lt;/html&gt;
311
312 </font>
313 </pre>
314 <hr noshade>
315 <h2>
316 <a name="header.html">${COMMON_DIR}/header.html</a>
317 </h2>
318 <p>
319 This file is the file that is output before any of the search
320 results are produced in a search. This file can be customized
321 to reflect your particular web look-and-feel, for example. Take
322 note that this file is only the top part of the full HTML
323 document that is produced when search results are displayed.
324 This means that it should start with the proper HTML
325 introductory tags and title.
326 </p>
327 <p>
328 This file will not just simply be copied. Instead, the search
329 engine will look for special variables inside the file. These
330 variables will be replaced with the appropriate values for
331 the particular search it is used for. For more details of the
332 use of these variables, consult the
333 <a href="hts_templates.html">htsearch templates</a> documentation.
334 </p>
335 <p>
336 Below is the default header.html file that gets installed.
337 Note that it contains a form to allow the user to refine the
338 search.
339 </p>
340 <pre>
341 <font size="-1">
342 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
343 &lt;html&gt;&lt;head&gt;&lt;title&gt;Search results for '$&(WORDS)'&lt;/title&gt;&lt;/head&gt;
344 &lt;body bgcolor="#eef7ff"&gt;
345 &lt;h2&gt;&lt;img src="/htdig/htdig.gif" alt="ht://Dig"&gt;
346 Search results for '$&(LOGICAL_WORDS)'&lt;/h2&gt;
347 &lt;hr noshade size="4"&gt;
348 &lt;form method="get" action="$(CGI)"&gt;
349 &lt;font size="-1"&gt;
350 &lt;input type="hidden" name="config" value="$&(CONFIG)"&gt;
351 &lt;input type="hidden" name="restrict" value="$&(RESTRICT)"&gt;
352 &lt;input type="hidden" name="exclude" value="$&(EXCLUDE)"&gt;
353 Match: $(METHOD)
354 Format: $(FORMAT)
355 Sort by: $(SORT)
356 &lt;br&gt;
357 Refine search:
358 &lt;input type="text" size="30" name="words" value="$&(WORDS)"&gt;
359 &lt;input type="submit" value="Search"&gt;
360 &lt;/font&gt;
361 &lt;/form&gt;
362 &lt;hr noshade size="1"&gt;
363 &lt;strong&gt;Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches.
364 More &lt;img src="/htdig/star.gif" alt="*"&gt;'s indicate a better match.
365 &lt;/strong&gt;
366 &lt;hr noshade size="1"&gt;
367 </font>
368 </pre>
369 <hr noshade>
370 <h2>
371 <a name="footer.html">${COMMON_DIR}/footer.html</a>
372 </h2>
373 <p>
374 This file is output after all the search results have been
375 displayed. All the same header.html rules apply to this file,
376 except that it is supposed to contain all the ending HTML tags.
377 </p>
378 <p>
379 Below is the default footer.html file that gets installed.
380 Note that it contains the page navigation stuff.
381 </p>
382 <pre>
383 <font size="-1">
384 $(PAGEHEADER)
385 $(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
386 &lt;hr noshade size="4"&gt;
387 &lt;a href="http://www.htdig.org/"&gt;
388 &lt;img src="/htdig/htdig.gif" border="0" alt="ht://Dig"&gt;ht://Dig $(VERSION)&lt;/a&gt;
389 &lt;/body&gt;&lt;/html&gt;
390 </font>
391 </pre>
392 <hr noshade>
393 <h2>
394 <a name="wrapper.html">${COMMON_DIR}/wrapper.html</a>
395 </h2>
396 <p>
397 This file may be used in place of the header.html and footer.html
398 files above. It is simply the concatenation of these two files,
399 with the pseudo-variable <strong>$(HTSEARCH_RESULTS)</strong> as
400 a separator for the header and footer sections.
401 All the same header.html and footer.html rules apply to this file.
402 To make this file override the header and footer files above, you
403 must define the <a href="attrs.html#search_results_wrapper">
404 search_results_wrapper</a> attribute.
405 </p>
406 <hr noshade>
407 <h2>
408 <a name="nomatch.html">${COMMON_DIR}/nomatch.html</a>
409 </h2>
410 <p>
411 If a search produces no matches, this file is displayed. All
412 the relevant variables will be replaced as in the header.html
413 and footer.html files. The default nomatch.html is little more
414 than header.html and footer.html appended:
415 </p>
416 <pre>
417 <font size="-1">
418 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
419 &lt;html&gt;&lt;head&gt;&lt;title&gt;No match for '$&(LOGICAL_WORDS)'&lt;/title&gt;&lt;/head&gt;
420 &lt;body bgcolor="#eef7ff"&gt;
421 &lt;h1&gt;&lt;img src="/htdig/htdig.gif" alt="ht://Dig"&gt;
422 Search results&lt;/h1&gt;
423 &lt;hr noshade size="4"&gt;
424 &lt;h2&gt;No matches were found for '$&(LOGICAL_WORDS)'&lt;/h2&gt;
425 &lt;p&gt;
426 Check the spelling of the search word(s) you used.
427 If the spelling is correct and you only used one word,
428 try using one or more similar search words with "&lt;strong&gt;Any&lt;/strong&gt;."
429 &lt;/p&gt;&lt;p&gt;
430 If the spelling is correct and you used more than one
431 word with "&lt;strong&gt;Any&lt;/strong&gt;," try using one or more similar search
432 words with "&lt;strong&gt;Any&lt;/strong&gt;."&lt;/p&gt;&lt;p&gt;
433 If the spelling is correct and you used more than one
434 word with "&lt;strong&gt;All&lt;/strong&gt;," try using one or more of the same words
435 with "&lt;strong&gt;Any&lt;/strong&gt;."&lt;/p&gt;
436 &lt;hr noshade size="4"&gt;
437 &lt;form method="get" action="$(CGI)"&gt;
438 &lt;font size="-1"&gt;
439 &lt;input type="hidden" name="config" value="$&(CONFIG)"&gt;
440 &lt;input type="hidden" name="restrict" value="$&(RESTRICT)"&gt;
441 &lt;input type="hidden" name="exclude" value="$&(EXCLUDE)"&gt;
442 Match: $(METHOD)
443 Format: $(FORMAT)
444 Sort by: $(SORT)
445 &lt;br&gt;
446 Refine search:
447 &lt;input type="text" size="30" name="words" value="$&(WORDS)"&gt;
448 &lt;input type="submit" value="Search"&gt;
449 &lt;/font&gt;
450 &lt;/form&gt;
451 &lt;hr noshade size="4"&gt;
452 &lt;a href="http://www.htdig.org/"&gt;
453 &lt;img src="/htdig/htdig.gif" border="0" alt="ht://Dig"&gt;ht://Dig $(VERSION)&lt;/a&gt;
454 &lt;/body&gt;&lt;/html&gt;
455 </font>
456 </pre>
457 <hr noshade>
458 <h2>
459 <a name="syntax.html">${COMMON_DIR}/syntax.html</a>
460 </h2>
461 <p>
462 If a boolean expression search causes a syntax error, this file
463 will be displayed.
464 </p>
465 <pre>
466 <font size="-1">
467 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
468 &lt;html&gt;&lt;head&gt;&lt;title&gt;Error in Boolean search for '$&(WORDS)'&lt;/title&gt;&lt;/head&gt;
469 &lt;body bgcolor="#eef7ff"&gt;
470 &lt;h1&gt;&lt;img src="/htdig/htdig.gif" alt="ht://Dig"&gt;
471 Error in Boolean search for '$&(LOGICAL_WORDS)'&lt;/h1&gt;
472 &lt;hr noshade size="4"&gt;
473 Boolean expressions need to be 'correct' in order for the search
474 system to use them.
475 The expression you entered has errors in it.&lt;p&gt;
476 Examples of correct expressions are: &lt;strong&gt;cat and dog&lt;/strong&gt;, &lt;strong&gt;cat
477 not dog&lt;/strong&gt;, &lt;strong&gt;cat or (dog not nose)&lt;/strong&gt;.&lt;br&gt;Note that
478 the operator &lt;strong&gt;not&lt;/strong&gt; has the meaning of 'without'.
479 &lt;blockquote&gt;&lt;strong&gt;
480 $(SYNTAXERROR)
481 &lt;/strong&gt;&lt;/blockquote&gt;
482 &lt;hr noshade size="4"&gt;
483 &lt;form method="get" action="$(CGI)"&gt;
484 &lt;font size="-1"&gt;
485 &lt;input type="hidden" name="config" value="$&(CONFIG)"&gt;
486 &lt;input type="hidden" name="restrict" value="$&(RESTRICT)"&gt;
487 &lt;input type="hidden" name="exclude" value="$&(EXCLUDE)"&gt;
488 Match: $(METHOD)
489 Format: $(FORMAT)
490 Sort: $(SORT)
491 &lt;br&gt;
492 Refine search:
493 &lt;input type="text" size="30" name="words" value="$&(WORDS)"&gt;
494 &lt;input type="submit" value="Search"&gt;
495 &lt;/font&gt;
496 &lt;/form&gt;
497 &lt;hr noshade size="4"&gt;
498 &lt;a href="http://www.htdig.org/"&gt;
499 &lt;img src="/htdig/htdig.gif" border="0" alt="ht://Dig"&gt;ht://Dig $(VERSION)&lt;/a&gt;
500 &lt;/body&gt;&lt;/html&gt;
501
502 </font>
503 </pre>
504 <hr size="4" noshade>
505
506 Last modified: $Date: 2004/05/28 13:15:18 $
507
508 </body>
509 </html>