Configure website for .torrent files?
You must associate files ending in .torrent with the Content-Type application/x-bittorrent.
Add the line:
AddType application/x-bittorrent .torrent
to your httpd.conf configuration file. If you cannot modify the main httpd.conf file (in the situation of a shared or virtual hosting scenario), you can also put the above AddType directive into .htaccess file. This presumes that the server's administrator has enabled this ability with the AllowOverride FileInfo directive.
Also note that settings in a .htaccess file only apply to the directory containing the file, so make sure this is the directory that will contain the .torrent files.
Alternatively, you can add the line:
to your mime.types file, which is used if the TypesConfig directive is present in httpd.conf.
Microsoft's IIS web server.
1. Right-click the Web site and choose Properties.
2. Select the HTTP Headers tab.
3. In the MIME Map box, click File Types, and then click New Type.
4. Enter the extension ".torrent" and the MIME type "application/x-bittorrent" in the appropriate boxes.
5. Select OK to close all the dialogs.
If you have trouble configuring it to work, you could place the .torrent files in an archive (.zip, .rar) and serve that instead. This will forfeit the ability to click on a torrent link and automatically launch the BitTorrent client. The user must manually unpack the .torrent file and then launch it to start the transfer