Commit | Line | Data |
---|---|---|
b5bd282f GE |
1 | commit 88ae39c72f464ce81b8eeea55bffc585807197be |
2 | Author: bar <bar> | |
3 | Date: Fri Jan 28 17:39:36 2011 +0000 | |
4 | ||
5 | - Moving Disallow commands for doc, pdf, ppt, xls, rtf | |
6 | on separate lines, to uncomment easier. | |
7 | - Adding unrtf | |
8 | ||
9 | diff --git a/etc/indexer.conf-dist b/etc/indexer.conf-dist | |
10 | index 798f0f7..a8eb757 100644 | |
11 | --- a/etc/indexer.conf-dist | |
12 | +++ b/etc/indexer.conf-dist | |
13 | @@ -308,6 +308,13 @@ DBAddr mysql://root@localhost/test/?dbmode=blob | |
14 | # special meaning in "string" match, so we have to use "regex" match here: | |
15 | #Disallow Regex \? | |
16 | ||
17 | +# Disallow document extensions that are not understood by default. | |
18 | +# Comment these lines if you have corresponding external parsers. | |
19 | +Disallow *.rtf | |
20 | +Disallow *.doc | |
21 | +Disallow *.xls | |
22 | +Disallow *.ppt | |
23 | +Disallow *.pdf | |
24 | ||
25 | # Exclude some known extensions using fast "String" match: | |
26 | Disallow *.b *.sh *.md5 *.rpm | |
27 | @@ -318,9 +325,9 @@ Disallow *.vdo *.mpeg *.mpe *.mpg *.avi *.movie *.mov *.wmv | |
28 | Disallow *.mid *.mp3 *.rm *.ram *.wav *.aiff *.ra | |
29 | Disallow *.vrml *.wrl *.png *.ico *.psd *.dat | |
30 | Disallow *.exe *.com *.cab *.dll *.bin *.class *.ex_ | |
31 | -Disallow *.tex *.texi *.xls *.doc *.texinfo | |
32 | -Disallow *.rtf *.pdf *.cdf *.ps | |
33 | -Disallow *.ai *.eps *.ppt *.hqx | |
34 | +Disallow *.tex *.texi *.texinfo | |
35 | +Disallow *.cdf *.ps | |
36 | +Disallow *.ai *.eps *.hqx | |
37 | Disallow *.cpt *.bms *.oda *.tcl | |
38 | Disallow *.o *.a *.la *.so | |
39 | Disallow *.pat *.pm *.m4 *.am *.css | |
40 | @@ -484,6 +491,7 @@ AddType text/rtf *.rtf | |
41 | AddType application/pdf *.pdf | |
42 | AddType application/msword *.doc | |
43 | AddType application/vnd.ms-excel *.xls | |
44 | +AddType application/vnd.ms-powerpoint *.ppt | |
45 | AddType text/x-postscript *.ps | |
46 | ||
47 | ||
48 | @@ -531,6 +539,7 @@ AddType application/unknown *.* | |
49 | #Mime application/vnd.ms-excel text/html "xlhtml $1" | |
50 | #Mime "text/rtf*" text/html "rthc --use-stdout $1 2>/dev/null" | |
51 | #Mime "text/rtf*" text/xml "rtfx -w $1 2>/dev/null" | |
52 | +#Mime "text/rtf*" text/html "unrtf --html $1" | |
53 | #Mime application/vnd.ms-powerpoint "text/html; charset=utf-8" "pptohtml $1" | |
54 | #Mime application/vnd.ms-powerpoint text/html "ppthtml $1" | |
55 |