Brians BitTorrent FAQ and Guide : (Category) Advanced Topics : (Answer) How do I configure a web server for .torrent files?
You must associate files ending in .torrent with the Content-Type application/x-bittorrent. For Apache, you should add the line: AddType application/x-bittorrent .torrent to your httpd.conf configuration file. If you cannot modify the main httpd.conf file (such as in the case of a shared or virtual hosting scenario), you can also put the above AddType directive in a .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: application/x-bittorrent .torrent to your mime.types file, which is used if the TypesConfig directive is present in httpd.conf.
Related Questions
- Brians BitTorrent FAQ and Guide : (Category) Troubleshooting Errors and Problems : (Answer) What can I do if I get a blue screen error, spontaneous reboot, or lockup?
- Brians BitTorrent FAQ and Guide : (Category) Advanced Topics : (Answer) What are the command line parameters for the BitTorrent client?
- Brians BitTorrent FAQ and Guide : (Category) Advanced Topics : (Answer) How do I configure a web server for .torrent files?