annotate DOCS/tech/mirrors/mirror_howto.txt @ 33263:5f527a9a9521

Add an exit function. This function will allow performing clean-up operations. (MPlayer calls guiDone() before exiting, but only if the GUI has been initialized, i.e. if guiInit() has been called successfully. Any exit_player()/exit_player_with_rc() after GUI's cfg_read() until guiInit(), or any exit_player() during guiInit() itself will end the GUI without calling guiDone(). This exit function will at least handle abortions during guiInit() itself. It will be called twice in case of an guiExit() after GUI initialization - first directly, next by guiDone() via MPlayer's exit_player_with_rc().)
author ib
date Tue, 03 May 2011 12:19:22 +0000
parents 0ad2da052b2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 28312
diff changeset
1 ------------------------------
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
2 How to build an MPlayer mirror
30990
0ad2da052b2e the great MPlayer tab removal: part I
diego
parents: 28312
diff changeset
3 ------------------------------
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
4
22774
92e4f4b5828f the mirror howto isnt preliminary anymore
attila
parents: 20458
diff changeset
5 This document might be inacurate or even incomplete, please
92e4f4b5828f the mirror howto isnt preliminary anymore
attila
parents: 20458
diff changeset
6 send feedback + corrections to the mplayer-mirror mailing list.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
7
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
8 About this document
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
9 ~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
10
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
11 Mirroring MPlayer is quite easy but requires a few steps to be taken
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
12 and a few things taken care of. This document describes these steps
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
13 in detail so that anyone wishing to build an official or an unofficial
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
14 mirror can do that without much trouble.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
15
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
16
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
17 A note on performance issues
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
19
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
20 A few of the commands used here will generate some load on our main server.
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
21 Too many clients executing them at once will overload our server and cause
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
22 a performance degradation for all our users. Thus we kindly ask you to be
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
23 considerate about what you do. We do not want to restrict mirroring to a
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
24 few select people, but this requires everyone using the system described
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
25 here to behave.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
26
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
27
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
28 Outline of the mirroring system
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
29 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
30
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
31 The mirroring system uses rsync to transfer the data and to perform
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
32 updates. A script (update_mplayer_rsync) is provided to call the rsync
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
33 client with the right set of parameters. This script should be run
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
34 periodically via cron.
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
35 Additionally, official mirrors should set up an ssh account so that
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
36 updates can be triggered when important changes on the main server
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
37 are performed.
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
38 Mirrors should provide their data over HTTP or FTP or both. Each official
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
39 mirror will be assigned a mirror number (wwwXXX.mplayerhq.hu or
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
40 ftpXXX.mplayerhq.hu where XXX is the mirror number). This mirror
22887
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
41 number determines the hostname over which it can be reached directly.
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
42
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
43 All mirrors are put into our DNS round-robin for the www.mplayerhq.hu and
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
44 ftp.mplayerhq.hu names and should be set up to respond to these names as well.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
45
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
46
22910
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
47 Requirements
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
48 ~~~~~~~~~~~~
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
49 The requirements for any (official) mirror are:
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
50 1) rsync installed and some way to run the sync script periodicaly (eg cron)
27314
cdb175b40827 Fix mailinglist vs. mailing list typo.
diego
parents: 27301
diff changeset
51 2) subscribing to the mplayer-mirror mailing list (see below)
22910
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
52
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
53 The requirements for a full website mirror are:
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
54 1) 500MB of free disk space (for the ftp and homepage directories).
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
55 2) A network connection with about 5Mbit/s sustained bandwidth.
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
56 3) A simple webserver that allows redirections and virtual server,
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
57 no PHP or CGI needed as all pages are static.
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
58
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
59 The requirements for a full ftp mirror are:
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
60 1) 500MB of free disk space (for the ftp directory).
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
61 2) (No bandwidth data for a ftp only server available)
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
62
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
63
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
64 Getting the data, mirroring script and cron setup
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
65 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
66
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
67 The mirroring script is located in our Subversion repository at
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
68
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
69 svn://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/mirrors/update_mplayer_rsync
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
70
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
71 or on the web at
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
72
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
73 http://svn.mplayerhq.hu/*checkout*/mplayer/trunk/DOCS/tech/mirrors/update_mplayer_rsync
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
74
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
75 This script requires a working `rsync` client. The handling of the
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
76 lock file is done by using `lockfile` from the procmail package.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
77 Using a lock file is recommended but not necessary. The temporary file
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
78 generation is handled by `mktemp` which is available from
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
79 http://www.mktemp.org/mktemp/ .
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
80
25489
52f6429a9ba7 typo: begining --> beginning
diego
parents: 22910
diff changeset
81 The script contains a few configuration variables at the beginning that
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
82 can and should be set:
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
83 PATH: The $PATH to be used within the script (recommended).
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
84 LOCK: The full path to the lock file to be used (/var/lock/mplayer-mirror-lock
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
85 or something similar, recommended).
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
86 MIRROR_ROOT: The root of the mirror. This is the directory where all files
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
87 are downloaded to (required).
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
88 MAILADR: The mail address where reports should be sent to (required).
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
89 TMPDIR: The directory where temporary files should be created.
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
90 If you set this explicitly, you have to uncomment the export below
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
91 (defaults to /tmp if not set).
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
92
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
93 Install this script and set the variables according to your setup. Then run
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
94 it once to get the first checkout of the mirror. This will require (at the
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
95 time of this writing - 2006-06) about 500MB of disk space.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
96 You should get two directories in your $MIRROR_ROOT: homepage and MPlayer.
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
97 The former containing the HTML pages for the mirror and the latter the
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
98 downloadable files.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
99
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
100 If this worked out OK, you should set up a cron job that periodically updates
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
101 the files. If you run an official mirror you should run the script every
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
102 6h to 12h (6h recommended). If you do not run an official mirror, you should
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
103 not run the script more often than once a day. Please use an "odd" time
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
104 to run the script when it is unlikely that any other cron job is running.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
105 Bad times are e.g. full hours, or minutes that are divisible by 5.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
106 An example crontab line would look like this:
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
107 ---
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
108 17 1,8,13,19 * * * /path/to/update_mplayer_rsync
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
109 ---
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
110 (please change the minute and hours to something random)
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
111
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
112 You can change the rest of the script as you see fit, although it is not
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
113 recommended. Please DO NOT CHANGE the options of the rsync commands.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
114 Especially DO NOT REMOVE the -t and -W options. These prevent calculating
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
115 checksums on the server side which are very expensive.
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
116
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
117
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
118 Setting up an SSH account for update triggers
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
119 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
120
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
121 Official mirrors should provide an ssh-based trigger to run the update script
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
122 on request. This makes it possible to distribute releases and other important
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
123 files immediately to all mirrors.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
124
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
125 The setup does not need a special user other than the one as which the update
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
126 script is run and does not allow running any other command.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
127
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
128 First you need to create an ssh key pair by running:
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
129 ---
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
130 ssh-keygen -t dsa -C MPHQ_rsync_trigger -f www#_sshkey
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
131 ---
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
132 (replace the '#' by your mirror number)
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
133
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
134 You should send the private key to us by mail and specify the host and
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
135 user to be used. Please use a private mail of one of the admins and
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
136 DO NOT send the private key to the mirror mailing list.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
137
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
138 The public key should be placed in the ~/.ssh/authorized_keys file of the
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
139 user running the updates. To restrict the ssh key to only one command place
25489
52f6429a9ba7 typo: begining --> beginning
diego
parents: 22910
diff changeset
140 the following directives at the beginning of the line with the key:
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
141 from="*.mplayerhq.hu",command="<path_to_update_mplayer_rsync>"
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
142 e.g.:
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
143 ---
18725
5db2de837b06 misc corrections
diego
parents: 18674
diff changeset
144 from="*.mplayerhq.hu",command="/path/to/update_mplayer_rsync" ssh-dss AAAA
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
145 B3NzaC1kc3MAAAEBAI20yhE3/bRjzojUhhMz4DHnGhcJUiPWOfoP9CygnFOYOxJTFlxgqM3iJiHWRxgK
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
146 FJ/Uw40eV9K4Ww4fp2pe1guXJzKna8+6vBXaPPVEVxSyaxgtt4Xt3zpUuCnNljgArcEhwcNyOyH2RVln
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
147 yhyxsrKhuq5ZoNHD3caBGjZu3eOR2atPGS1NOdeN/hytIoh8T8DicPqPI29yWX9yAjnHv6wdPutwMLu6
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
148 [...]
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
149 n0Fs3CJY6/1UpgDGH7VPey0SdpJEDewltRLA+buP++2vJD/NUOeGzcRydo2NdZ1wiiaytXxkaec928JC
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
150 NABTeBh6NKAg4vnPvcRLKEBVdSrar/fARSbOmf3HOcsw3uZoAIE9jDGhnMKcnXfHjPZ2tZP9CHs6Wo4n
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
151 yDOxIfDZmJ7VJqMRc6//p5k81pkkGvawbPA63StI/Dkv/648l4XONuJc2z5gaUdjrTA8TsD/VJGiGcHl
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
152 mlGj3IWCBz7e4+XB3L64kFZwLCYN8kwDUAaHq4EtcMVOnQ== MPHQ_rsync_trigger
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
153 ---
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
154 (lines split for readability)
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
155
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
156
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
157 Setting up a webserver
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
158 ~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
159
18726
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
160 Set up Apache or whatever web server you prefer. We just have static pages,
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
161 so no fancy configuration is necessary. However, we need a few aliases so that
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
162 links on our pages work correctly. /MPlayer and /DOCS should redirect to the
28312
71e985becf45 The homepage/ subdirectory should no longer be redirected on web mirrors.
diego
parents: 27315
diff changeset
163 directory with the downloadable files.
18726
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
164
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
165 Here is an example stanza to paste into your Apache configuration:
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
166
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
167 <VirtualHost www#.mplayerhq.hu>
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
168 DocumentRoot /path/to/htdocs
19268
01c395bab564 Add Indexes to Options as suggested by Jaeho Shin.
diego
parents: 18726
diff changeset
169 Options FollowSymLinks Indexes
18726
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
170 Alias /MPlayer /path/to/MPlayer
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
171 Alias /DOCS /path/to/MPlayer/DOCS
20458
038e29652be8 Add a note about charset configuration to the Apache section.
diego
parents: 19268
diff changeset
172 AddDefaultCharset off
18726
7262fa28d79f Setting up a web server and FTP server.
diego
parents: 18725
diff changeset
173 </VirtualHost>
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
174
22887
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
175 <VirtualHost www.mplayerhq.hu>
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
176 DocumentRoot /path/to/htdocs
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
177 Options FollowSymLinks Indexes
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
178 Alias /MPlayer /path/to/MPlayer
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
179 Alias /DOCS /path/to/MPlayer/DOCS
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
180 AddDefaultCharset off
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
181 </VirtualHost>
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
182
20458
038e29652be8 Add a note about charset configuration to the Apache section.
diego
parents: 19268
diff changeset
183 The AddDefaultCharset directive is necessary because newer versions of Apache
038e29652be8 Add a note about charset configuration to the Apache section.
diego
parents: 19268
diff changeset
184 appear to default to defining a standard charset. This breaks our documentation
038e29652be8 Add a note about charset configuration to the Apache section.
diego
parents: 19268
diff changeset
185 translations, which are written in different encodings.
038e29652be8 Add a note about charset configuration to the Apache section.
diego
parents: 19268
diff changeset
186
22887
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
187 The second VirtualHost is necessary for the DNS round-robin address.
27301
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
188 To check whether this VirtualHost works, you can add a temporary entry into
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
189 your /etc/hosts file:
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
190
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
191 1.2.3.4 www.mplayerhq.hu
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
192
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
193 Replace the IP address by the real IP address of your mirror. Do not forget to
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
194 remove the entry after you finish testing.
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
195
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
196
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
197 Webserver checklist
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
198 ~~~~~~~~~~~~~~~~~~~
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
199
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
200 After setting up the web server, please verify that the following things work
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
201 both for your mirror address (www#.mplayerhq.hu) and the DNS round-robin
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
202 address (www.mplayerhq.hu):
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
203
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
204 - The virtual host is reachable by its address.
28312
71e985becf45 The homepage/ subdirectory should no longer be redirected on web mirrors.
diego
parents: 27315
diff changeset
205 - The MPlayer and DOCS subdirectories work.
27301
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
206 - The man pages and documentation are served with the correct content-type.
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
207 Try Russian or Chinese, you will notice breakage immediately.
22887
dc3ff1498f69 Mention DNS round-robin system in the mirroring HOWTO.
diego
parents: 22774
diff changeset
208
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
209
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
210 Setting up an FTP server
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
211 ~~~~~~~~~~~~~~~~~~~~~~~~
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
212
27315
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
213 Any FTP server will do. We use vsftpd, it is fast and secure. The setup is
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
214 similar to the web server setup. The FTP server should listen on both its mirror
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
215 address (ftp#.mplayerhq.hu) and the DNS round-robin address (ftp.mplayerhq.hu).
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
216 All our mirrors are public, so you should allow anonymous access.
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
217
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
218 You should have the same directory layout as we do on our server, so there
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
219 should be a subdirectory named 'MPlayer' (notice the capitals) that contains
f547c9a0eb91 Add some more information about FTP mirror setup.
diego
parents: 27314
diff changeset
220 the downloadable files.
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
221
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
222
27314
cdb175b40827 Fix mailinglist vs. mailing list typo.
diego
parents: 27301
diff changeset
223 Mailing list
cdb175b40827 Fix mailinglist vs. mailing list typo.
diego
parents: 27301
diff changeset
224 ~~~~~~~~~~~~
18674
abaac3427f7c Preliminary version of mirror howto
attila
parents:
diff changeset
225
22910
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
226 All official mirror admins are required to subscribe to the mplayer-mirror
27314
cdb175b40827 Fix mailinglist vs. mailing list typo.
diego
parents: 27301
diff changeset
227 mailing list. It's used to coordinate the efforts and distribute information
22910
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
228 among all admins. It is also very low traffic. Please use the webinterface
0aaf6309be25 Add "Requirements" and "Mailinglist" section
attila
parents: 22887
diff changeset
229 on http://lists.mplayerhq.hu/mailman/listinfo/mplayer-mirror to subscribe.
27301
19fef8a7d0ab Add instructions how to test the DNS round-robin virtual host, add a
diego
parents: 25489
diff changeset
230 Please do not top-post on this mailing list.