This tutorial should help people out who want to host their own http download repositories for Tremulous gameservers. The advantage of this method is, that all maps, which are running on your server, are automatically available in the map repository.
---
First you have to set up apache on the same machine and create a virtualhost with the following settings:
<VirtualHost 000.000.000.000:80>
ServerName map-repository.your-domain.com
DocumentRoot /var/www/map-repository
DirectoryIndex index.htm
AliasMatch ^/(.*)\.pk3$ /usr/local/games/tremulous/$1.pk3
<directory "/usr/local/games/tremulous">
Allow from all
</directory>
<directory "/var/www/map-repository">
Allow from all
Options +Indexes
</directory>
</VirtualHost>
Change the paths, domain and ip address to fit your server settings.
The last thing you have to do now is to activate http downloads in your server.cfg:
set sv_allowdownload 1
set sv_wwwDownload 1
set sv_wwwBaseURL "http://map-repository.your-domain.com"
Now restart your server and everything is fine. In the end, you could place an index.htm file in /var/www/map-repository like I did:
http://tremulous.servers.dasprids.de/You could also create a PHP script, which will list all directories and all PK3 files within them, but thats not needed. Apache will now re-route all PK3 files to the browser, but no configuration files.