Torrage + Apache

A while ago I tried to install Torrage with Apache and not the suggested lighthttpd. I had to modify the suggested “README-lighttpd.txt” in the docs directory to suit an apache .htaccess in the main folder.


RewriteEngine On
RewriteCond %{HTTP_HOST} ^torrage.luisaranguren.com$
RewriteRule ^torrent/([0-9A-F]{2,2})([0-9A-F]{2,2})([0-9A-F]{36,36}).* /t/$1/$2/$3.torrent [R=301,L]
<FilesMatch "\.torrent">
Header set Content-Encoding "gzip"
</FilesMatch>

<FilesMatch "\.ghtml">
Header set Content-Encoding "gzip"
</FilesMatch>

This definitely did the trick and got Torrage working flawlessly with Apache.