mod_bt - Making things better for seeders

Documentation

Configuration

httpd.conf example

The "etc/httpd.conf" file in the mod_bt distribution provides a functioning example. At the very least, you will have to make a directory for mod_bt's data files to live and specify that to apache as "TrackerHome", as well as setting up your content-handlers at their appropriate URLs.

Apache Configuration Directives

The following directives may be used in an httpd.conf file to configure the tracker:

Content Handlers

modbt-announce

Handler for BitTorrent peer announce requests.

Extensions:

modbt-scrape

Handler for BitTorrent scrape requests

Extensions:

Only one of "xml=1", "verbose=1", or "html=1" may be specified.

modbt-root

Return an HTML information page about the hashes. (Equivalent to calling the "modbt-scrape" handler with "html=1" appended to the URL arguments supplied by the user.)

modbt-register

Handler for Infohash registration.

When called with no arguments, a HTML page is displayed allowing the user to fill out the arguments required to register a hash.

This URL is more for use by administration scripts than actual users, but has an HTML interface to facilitate manual use as well.

Arguments:

modbt-details

Handler for Infohash details.

The modbt-details handler generates an HTML page giving some information about an infohash, as well as an HTML listing of all of the peers currently considered to be part of the infohash. This handler can be bandwidth expensive on very popular torrents.

Arguments:

Example:

	TrackerDetailURL /details
	<Location "/details">
		SetHandler	modbt-details
	</Location>