# # Config file for mnoGoSearch and WWWOFFLE. # # This configuration file is used by mnoGoSearch with WWWOFFLE. # #### THE PROXY HOST IS "LOCALHOST" IN THE Proxy AND Server OPTIONS #### # Use '#' to comment out lines. # All command names are case insensitive (DBHost=DBHOST=dbhost). # You may use '\' character to prolong current command to next line # when it is required. ########################################################################### # DBAddr # Database options (type, host, database name, port, user and password) # to connect to SQL database. # Do not matter for built-in text files support. # Should be used only once and before any other commands. # Command have global effect for whole config file. # Format: #DBAddr :[//[DBUser[:DBPass]]DBHost[:DBPort]]/DBName/ # # ODBC notes: # Use DBName to specify ODBC data source name (DSN) # DBHost does not matter, use "localhost". # Solid notes: # Use DBHost to specify Solid server # DBName does not matter for Solid # # Currently supported DBType values are # mysql, pgsql, msql, solid, mssql, oracle, ibase. # Actually, it does not matter for native libraries support. # But ODBC users should specify one of supported values. # If your database type is not supported, you may use "unknown" instead. DBAddr mysql://wwwoffle@localhost/mnogosearch/ #DBAddr pgsql://wwwoffle@localhost/mnogosearch/ ####################################################################### # DBMode single/multi/crc/crc-multi # Does not matter for built-in text files support # You may select SQL database mode of words storage. # When "single" is specified, all words are stored in the same #table. If "multi" is selected, words will be located in different #tables depending of their lengths. "multi" mode is usually faster #but requires more tables in database. # # If "crc" mode is selected, mnoGoSearch will store 32 bit integer # word IDs calculated by CRC32 algorythm instead of words. This # mode requres less disc space and it is faster comparing with "single" # and "multi" modes. "crc-multi" uses the same storage structure with # the "crc" mode, but also stores words in different tables depending on # words lengths like "multi" mode. # #Default DBMode value is "single": #DBMode single DBMode crc-multi ####################################################################### #SyslogFacility # This is used if indexer was compiled with syslog support and if you # don't like the default value. Argument is the same as used in syslog.conf # file. For list of possible facilities see syslog.conf(5) #SyslogFacility local7 ####################################################################### # LocalCharset # Defines charset of local file system. It is required if you are using # 8 bit charsets and does not matter for 7 bit charsets. # This command should be used once and takes global effect for the config file. # Choose currently supported one: # # Western Europe: Germany #LocalCharset iso-8859-1 # # Central Europe: Czech #LocalCharset iso-8859-2 # # ISO Cyrillic #LocalCharset iso-8859-5 # # Unix Cyrillic #LocalCharset koi8-r # # MS Central Europe: Czech #LocalCharset cp1250 # # MS DOS Cyrillic #LocalCharset cp866 # # MS Cyrillic #LocalCharset cp1251 # # MS Arabic #LocalCharset cp1256 # # Mac Cyrillic #LocalCharset x-mac-cyrillic ########################################################################### # Ispell support commands. Detailed description is given in /doc/ispell.txt # Ispell commands MUST be given after LocalCharset definition. # Load ispell affix file: #Affix # Load ispell dictionary file #Spell # File names are relative to mnoGoSearch /etc directory # Absolute paths can be also specified. # #Affix en en.aff #Spell en en.dict ####################################################################### # MaxDocSize bytes # Default value 1048576 (1 Mb) # Takes global effect for whole config file #MaxDocSize 1048576 MaxDocSize 10485760 ####################################################################### # Include # Include enother configuration file. # Absolute path if starts with "/": #Include /usr/local/mnogosearch/etc/inc1.conf # Relative path else: #Include inc1.conf ####################################################################### # HTTPHeader
# You may add your desired headers in indexer HTTP request # You should not use "If-Modified-Since","Accept-Charset" headers, # these headers are composed by indexer itself. # "User-Agent: mnoGoSearch/version" is sent too, but you may override it. # Command has global effect for all configuration file. # #HTTPHeader User-Agent: My_Own_Agent #HTTPHeader Accept-Language: ru, en #HTTPHeader From: webmaster@mysite.com ################################################################# #ForceIISCharset1251 yes/no #This option is useful for users which deals with Cyrillic content and broken #(or misconfigured?) Microsoft IIS web servers, which tends to not report #charset correctly. This is really dirty hack, but if this option is turned on #it is assumed that all servers which reports as 'Microsoft' or 'IIS' have #content in Windows-1251 charset. #This command should be used only once in configuration file and takes global #effect. #Default: no #ForceIISCharset1251 no ####################################################################### #Period # Does not matter for built-in text files support # Reindex period in seconds, 604800 = 1 week # Can be set many times before "Server" command and # takes effect till the end of config file or till next Period command. #Period 604800 ####################################################################### #Tag # Use this field for your own purposes. For example for grouping # some servers into one group, etc... # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next Tag command. #Tag 0 ####################################################################### #MaxHops # Maximum way in "mouse clicks" from start url. # Default value is 256. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next MaxHops command. #MaxHops 256 MaxHops 4 ####################################################################### #MaxNetErrors # Maximum network errors for each server. # Default value is 16. # If there too many network errors on some server # (server is down, host unreachable, etc) indexer will try to do # not more then 'number' attempts to connect to this server. # Takes effect till the end of config file or till next MaxNetErrors command. #MaxNetErrors 16 MaxNetErrors 1000 ####################################################################### #ReadTimeOut # Maximum timeout while downloading document for each server. # Default value is 90. # Can be set any times before "Server" command and # takes effect till the end of config file or till next ReadTimeOut command. #ReadTimeOut 90 ####################################################################### #Robots yes/no # Allows/disallows using robots.txt and # exclusions. Use "no", for example for link validation of your server(s). # Command may be used several times before "Server" command and # takes effect till the end of config file or till next Robots command. # Default value is "yes". #Robots yes ####################################################################### #Clones yes/no # Allow/disallow clone eliminating # Default value is "yes". Clones no ####################################################################### #TitleWeight # Weight of the words in the ... # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next TitleWeight command. # Default value is 2 #TitleWeight 2 ####################################################################### #BodyWeight # Weight of the words in the ... of the html documents # and in the content of the text/plain documents. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next BodyWeight command. # Default value is 1 #BodyWeight 1 ####################################################################### #DescWeight # Weight of the words in the # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next DescWeight command. # Default value is 2 #DescWeight 2 ####################################################################### #KeywordWeight # Weight of the words in the # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next KeywordWeight command. # Default value is 2 #KeywordWeight 2 ####################################################################### #UrlWeight # Weight of the words in the URL of the documents. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next UrlWeight command. # Default value is 0 #UrlWeight 0 ####################################################################### #UrlHostWeight # Weight of the words in the hostname part of URL of the documents. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next UrlHostWeight command. # Default value is 0 #UrlHostWeight 0 ####################################################################### #UrlPathWeight # Weight of the words in the path part of URL of the documents. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next UrlPathWeight command. # Default value is 0 #UrlPathWeight 0 ####################################################################### #UrlFileWeight # Weight of the words in the filename part of URL of the documents. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next UrlFileWeight command. # Default value is 0 #UrlFileWeight 0 ###################################################################### # Spell checking. You can change the factors of word weight depending on # whether word is found in Ispell dictionaries or not. Setting the # "IspellCorrectFactor" to 0 will prevent indexer from storing words with # right spelling in database. The only incorrect words will be stored # in database in this case. Then you may easily find incorrect words # and correspondent URLs where those words are found. If no # ispell files are used all word are considered as "incorrect". # #IspellCorrectFactor 1 #IspellIncorrectFactor 1 ####################################################################### # Numbers indexing. By default numbers and words which contain both # digits and letters (like "3a","U2") are stored in database. You may change # this behaviour by setting into "0" weight factors. Usefull for spell checking # in combination with previous commands. # #NumberFactor 1 #AlnumFactor 1 ####################################################################### # Word lengths. You may change default length range of words # stored in database. By default, words with the length in the # range from 1 to 32 are stored. Note that setting MaxWordLength more # than 32 will not work as expected. # #MinWordLength 1 #MaxWordLength 32 ####################################################################### #DeleteBad yes/no # Use it to choose whether delete or not bad (not found, forbidden etc) URLs # from database. # May be used multiple times before "Server" command and # takes effect till the end of config file or till next DeleteBad command. # Default value is "no", that means do not delete bad URLs. #DeleteBad no ####################################################################### #DeleteNoServer yes/no # Use it to choose whether delete or not those URLs which have no # correspondent "Server" commands. # Default value is "yes". #DeleteNoServer yes ####################################################################### #Index yes/no # Prevent indexer from storing words into database. # Useful for example for link validation. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next Index command. # Default value is "yes". #Index yes ####################################################################### #Follow yes/no # Allow/disallow indexer to store into database. # Can be set multiple times before "Server" command and # takes effect till the end of config file or till next Follow command. # Default value is "yes". #Follow yes ####################################################################### #FollowOutside yes/no # Allow/disallow indexer to walk outside servers given in config file. # Should be used carefully (see MaxHops command) # Takes effect till the end of config file or till next FollowOutside command. # Default value "no" #FollowOutside no FollowOutside yes ######################################################################## #CharSet # Useful for 8 bit character sets. # WWW-servers send data in different charsets. # is default character set of server in next "Server" command(s). #This is required only for "bad" servers that do not send information #about charset in header: "Content-type: text/html; charset=some_charset" # and have not #Can be set before every "Server" command and # takes effect till the end of config file or till next CharSet command. #CharSet windows-1251 ######################################################################### #Proxy your.proxy.host[:port] # Use proxy rather then connect directly #One can index ftp servers when using proxy #Default port value if not specified is 3128 (Squid) #If proxy host is not specified direct connect will be used. #Can be set before every "Server" command and # takes effect till the end of config file or till next Proxy command. #If no one "Proxy" command specified indexer will use direct connect. # # Examples: # Proxy on atoll.anywhere.com, port 3128: #Proxy atoll.anywhere.com # # Proxy on lota.anywhere.com, port 8090: #Proxy lota.anywhere.com:8090 # # Disable proxy (direct connect): #Proxy Proxy LOCALHOST ######################################################################### #AuthBasic login:passwd # Use basic http authorization # Can be set before every "Server" command and # takes effect only for next one Server command! # Examples: #AuthBasic somebody:something # If you have password protected directory(ies), but whole server is open,use: #AuthBasic login1:passwd1 #Server http://my.server.com/my/secure/directory1/ #AuthBasic login2:passwd2 #Server http://my.server.com/my/secure/directory2/ #Server http://my.server.com/ ######################################################################### #Server # It is the main command of indexer.conf file # It's used to add start URL of server # You may use "Server" command as many times as number of different # servers required to be indexed. # You can index ftp servers when using proxy: #Server ftp://localhost/ #Server http://localhost/ Server http://LOCALHOST/search/start4.html ########################################################################## #CheckOnly [ ... ] #CheckOnlyNoMatch # Indexer will use HEAD instead of GET HTTP method for URLs that # matche/do not match given regular expressions. It means that the file # will be checked only for being existing and will not be downloaded. # Useful for zip,exe,arj and other binary files. # Note that you can disallow those files with commands given below. # You may use several arguments for one 'CheckOnly' and 'CheckOnlyNoMatch' # commands. # Useful for example for searching through the URL names rather than # the contents (a la FTP-search). # Takes global effect for config file. # Check some known non-text extensions: #CheckOnly \.b$ \.sh$ \.md5$ #CheckOnly \.arj$ \.tar$ \.zip$ \.tgz$ \.gz$ #CheckOnly \.lha$ \.lzh$ \.tar\.Z$ \.rar$ \.zoo$ #CheckOnly \.gif$ \.jpg$ \.jpeg$ \.bmp$ \.tiff$ #CheckOnly \.vdo$ \.mpeg$ \.mpe$ \.mpg$ \.avi$ \.movie$ #CheckOnly \.mid$ \.mp3$ \.rm$ \.ram$ \.wav$ \.aiff$ #CheckOnly \.vrml$ \.wrl$ \.png$ #CheckOnly \.exe$ \.cab$ \.dll$ \.bin$ \.class$ #CheckOnly \.tex$ \.texi$ \.xls$ \.doc$ \.texinfo$ #CheckOnly \.rtf$ \.pdf$ \.cdf$ \.ps$ #CheckOnly \.ai$ \.eps$ \.ppt$ \.hqx$ #CheckOnly \.cpt$ \.bms$ \.oda$ \.tcl$ #CheckOnly \.rpm$ # # or check ANY except known text extensions #CheckNoMatch \/$|\.html$|\.shtml$|\.phtml$|\.php$|\.txt$ ########################################################################## #HrefOnly [ ... ] # Use this to scan a HTML page for "href" tags but not index the contents # of the page. # When indexing large mail list archives for example, the index and thread # index pages can be scanned for other hrefs but not indexed. #HrefOnly mail.*\.html$ thr.*\.html$ ########################################################################## #HrefOnlyNoMatch # Use this to scan a HTML page for href tags but not index the contents # of the page with an URL not matched given regexp. Command has global # effect for all configuration file. #HrefOnlyNoMatch \.html$|\.ptml$ ########################################################################## #Allow [ ... ] # Use this to allow url that matches given regexp. Use it in combination # You may use several arguments for one 'Allow' command. # You may use this command any times. # Takes global effect for config file. # Note that mnoGoSearch automatically adds one "Allow .*" # command after reading config file. It means that allowed everything # that is not disallowed. #Allow .* ########################################################################## #AllowNoMatch # Use this to allow URLs that do not match given regular expression(s). # Use only one argument for 'Allow' command. # Takes global effect for config file. #AllowNoMatch \.php$|\.cgi$|\.pl$ ########################################################################## #Disallow [ ... ] # Use this to disallow url that matches given regexp. # One can use several arguments for one 'Disallow' command. # Takes global effect for config file. # Exclude cgi-bin and non-parsed-headers Disallow /cgi-bin/ \.cgi /nph \? # Exclude some known extensions Disallow \.b$ \.sh$ \.md5$ \.rpm$ Disallow \.arj$ \.tar$ \.zip$ \.tgz$ \.gz$ Disallow \.lha$ \.lzh$ \.tar\.Z$ \.rar$ \.zoo$ Disallow \.gif$ \.jpg$ \.jpeg$ \.bmp$ \.tiff$ \.xpm$ \.xbm$ Disallow \.vdo$ \.mpeg$ \.mpe$ \.mpg$ \.avi$ \.movie$ Disallow \.mid$ \.mp3$ \.rm$ \.ram$ \.wav$ \.aiff$ \.ra$ Disallow \.vrml$ \.wrl$ \.png$ Disallow \.exe$ \.cab$ \.dll$ \.bin$ \.class$ Disallow \.tex$ \.texi$ \.xls$ \.doc$ \.texinfo$ Disallow \.rtf$ \.pdf$ \.cdf$ \.ps$ Disallow \.ai$ \.eps$ \.ppt$ \.hqx$ Disallow \.cpt$ \.bms$ \.oda$ \.tcl$ Disallow \.o$ \.a$ \.la$ \.so$ \.so\.[0-9]$ Disallow \.pat$ \.pm$ \.m4$ \.am$ # Exclude Apache directory list in different sort order Disallow \?D=A$ \?D=A$ \?D=D$ \?M=A$ \?M=D$ \?N=A$ \?N=D$ \?S=A$ \?S=D$ # Exclude ./. and ./.. from Apache and Squid directory list Disallow /[.]{1,2} /\%2e /\%2f # Exclude double slashes path_part1//path_part2 Disallow [^:]// ########################################################################## #DisallowNoMatch [ ... ] # Use this to disallow URLs that do not match given regexps. # Takes global effect for config file. # Examples: # Disalow URLs that are not in udm.net domains: #DisallowNoMatch udm\.net\/ # or # Disallow any except known extensions and directory index: #DisallowNoMatch \/$|\.htm$|\.html$|\.shtml$|\.phtml$|\.php$|\.txt$ # # How to combine Allow,AllowNoMatch,Disallow,DisallowNoMatch, # CheckOnly, CheckOnlyNoMatch commands. # # indexer will compare URL against all CheckOnly, Allow, Disallow, ..NoMatch # command arguments in the same order given in indexer.conf file. # If indexer find that URL matches some rule it will make decision of what # to do with this URL, allow it, disallow it or use HEAD instead # of the GET method. So, you may use different CheckOnly, Allow, Disallow, # or ..NoMatch commands order. # If no one CheckOnly, Allow, Disallow, ..NoMatch commands are given, # mnoGoSearch will allow everything by default. # #There are many possible combinations. Samples of two of them are here: # # Sample of first useful combination. # Disallow first known non-text extensions (zip,wav etc), # then allow everything else. This sample is uncommented above # # Sample of second combination. # Allow first some known text extensions (html, txt) and directory index ( / ), # then disallow everything else: # #Allow \.html$ \.txt$ \/$ #Disallow .* # ################################################################ #AddType [..] # This command associates filename extensions (for services # that don't automatically include them - like file:) with a mime types # AddType text/plain \.pl$ \.js$ \.txt$ \.h$ \.c$ \.pm$ \.e$ AddType text/html \.html$ \.htm$ AddType image/x-xpixmap \.xpm$ AddType image/x-xbitmap \.xbm$ AddType image/gif \.gif$ AddType application/unknown .* # # Mime [;charset] ["command line [$1]"] # # This is used to add support for parsing documents with mime types other # than text/plain and text/html. It can be done via external parser (which # should provide output in plain or html text) or just by substituting mime # type so indexer will understand it. # # and are standard mime types # should be either text/plain or text/html # # We assume external parser generates results on stdout (if not, you have to # write a little script and cat results to stdout) # # Optional charset parameter used to change charset if needed # # Command line parameter is optional. If there's no command line, this is # used to change mime type. Command line could also have $1 parameter which # stands for temporary file name. Some parsers could not operate on stdin, # so indexer creates temporary file for parser and it's name passed instead # of $1 # # from_mime to_mime[;charset] [command line [$1]] # #Mime application/msword text/plain;cp1251 "catdoc $1" #Mime application/x-troff-man text/plain "deroff" #Mime text/x-postscript text/plain "ps2ascii" ######################################################################### #Alias # You can use this command for example to organize search through #master site by indexing mirror site. # mnoGoSearch will display URLs from master site while searching # but go to the mirror site while indexing. This command has global # indexer.conf file effect. You may use several aliases in one indexer.conf. #Alias http://www.mysql.com/ http://mysql.udm.net/ ############################################################## # Mirroring parameters commands. # # You may specify a path to root dir to enable sites mirroring #MirrorRoot /path/to/mirror # # You may specify as well root dir of mirrored document's headers #indexer will store HTTP headers to disc too. #MirrorHeadersRoot /path/to/headers # # You may specify period in seconds during wich earlier mirrored files #will be used while indexing instead of real downloading. # It is very usefull when you do some expiriments with mnoGoSearch # indexing the same hosts and do not want much traffic from/to Internet. # If MirrorHeadersRoot is not specified and headers are not stored on disc # default Content-Type's given in AddType commands will be used. # Default value of the MirrorPeriod is -1, wich means do not use # mirrored files. # This will force reading local copies during 1 day: # #MirrorPeriod 86400