[mirror-admin] ISO best practice FTP?
Jan Kasprzak
kas at fi.muni.cz
Wed Mar 9 15:05:31 EST 2011
Brian Long wrote:
: It used to be best practice to use an Apache RewriteRule to redirect all
: .iso downloads on a Mirror to FTP. Do people still recommend this or
: are you allowing Apache to serve up the ISOs directly?
:
: I own a private mirror for Fedora, CentOS, Ubuntu, OpenSUSE, etc. and I
: have a conf snippet as follows:
:
: KeepAlive On
: KeepAliveTimeout 2
: MaxKeepAliveRequests 100
:
: RewriteEngine On
: RewriteCond %{REQUEST_METHOD} GET
: RewriteRule ^(.*\.iso)$ ftp://<hostname>.cisco.com/$1 [L,R=301]
Some time ago I have used the following at ftp.linux.cz:
RedirectMatch (.*.iso)$ ftp://ftp.linux.cz$1
But now I serve the ISO images directly over HTTP. Just keep the following
two problems in mind:
1) ISO downloads tend to take a lot of time, and occasionally the MaxClients
limit can be reached. In order to prevent the HTTP server which serves
the FTP archive influencing the other virtual HTTP sites, it should
be a separate Apache instance (not only a separate <VirtualHost>).
2) Make sure EnableSendfile is on (but beware that it does not work with files
on a NFS volume (which I don't have) and it of course does not work
over HTTPS.
-Yenya
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
Please don't top post and in particular don't attach entire digests to your
mail or we'll all soon be using bittorrent to read the list. --Alan Cox
--
More information about the Mirror-admin
mailing list