Instructions in laments terms that actually works, this is assuming that you don't know shit.
create a .htaccess file with notepad and insert the following text into it, then save it
AddEncoding x-gzip gz
Options +MultiViews -Indexes
ForceType application/x-quake2-data
upload this file to your web server space that has your quake 2 files in it, it should be the folder that has the mod folders, baseq2, lithium, dday
next, create a file and save it with a .pl extension, and paste this code into it
#!perl
use File::Find;
sub callback
{
if ($_ =~ /\.gz$/ || $_ =~ /\..+\..+$/ || -d $_ || $_ eq '.htaccess')
{
return;
}
$file = $File::Find::name;
print "Compressing: $file\n";
if ($file =~ /^.+(\..+)$/)
{
$ext = $1;
$unc = $file . $1;
$com = $file . ".gz";
system ("ls -al $file");
unlink ($unc);
unlink ($com);
system ("cp -a $file $unc");
system ("gzip -9 -n $file");
system ("ls -al $com");
}
}
find (\&callback, "/var/www/repository");
make sure have the correct path of your q2 files on that last line, if you don't know what the path should be, then you should see it in FileZilla when you are viewing your q2 folder that people will download from, just copy & paste that path to replace the path in the code above.
Next upload this new file updaterepository.pl to your cgi-bin folder located under your public_html folder
Next SSH to your web space using Putty, download
http://www.putty.org/once your logged in change to the directory of your cgi-bin and type the following
chmod +x updaterepository.pl
screen -S perl
that will open a screen session that will continue if you somehow get disconnected
now to start the compression process type:
perl updaterepository.pl
Now you will see a all your files getting compressed within that directory, and now you shall be havin fast compressed downloads