Server

Name

Server -- describes Web-space for indexing

indexer.conf

Synopsis

Server [Method] [Subsection] {URL} [alias]

Description

This is the main command of the indexer.conf file. It's used to describe the Web-space you want to index. It also inserts the given URL into the database to use it as a start point (entry point).

Server can be given multiple times, as many times as the number of different servers (or server parts) you want to index.

Method is an optional parameter which can take one of the following values:

The default Method value is Allow. The meaning of the different Method values is similar to the commands with the same names (Allow, Disallow, etc).

Subsection is an optional parameter to specify a part of the server. It can take the following values:

The default Subsection value is path.

Have a look into the Section called Specifying the Web space for indexing in Chapter 3 for more details.

Examples


# Index the entire server "host1":
Server http://host1/

# Index a subdirectory of "local2":
Server http://host2/subdir/

# Index a single document from host3:
Server page http://host3/path/main.html

# Index the entire server host4 using a non-root page as an entry point:
Server site http://host4/path/main.html

# You can also specify optional parameter "alias". This example will
# index server "http://www.mnogosearch.org/" directly from disk instead of
# fetching from HTTP server:
Server http://www.mnogosearch.org/  /home/httpd/www.mnogosearch.org/
      

See also

Allow, FlushServerTable, Realm, ServerTable, Subnet, URL.