2002-09-10 17:04:05 +00:00
|
|
|
<title>Setting up a data server</title>
|
|
|
|
<h2>Setting up a data server</h2>
|
|
|
|
|
|
|
|
<p>
|
2002-10-03 18:33:46 +00:00
|
|
|
The BOINC data server is implemented using Apache
|
|
|
|
or a similar web server.
|
|
|
|
It is used both to upload and to download files.
|
|
|
|
File download is handled by the web server, using GET operations.
|
|
|
|
File upload is done by a CGI program, <b>file_upload_handler</b>.
|
2002-09-10 17:04:05 +00:00
|
|
|
The host need not have access to the BOINC database.
|
|
|
|
<p>
|
|
|
|
You must copy the file upload authentication key
|
|
|
|
to each data server.
|
|
|
|
|
|
|
|
<p>
|
2002-10-03 18:33:46 +00:00
|
|
|
The file upload handler uses a configuration of
|
|
|
|
the same format as used by the
|
|
|
|
<a href=sched_server_setup.html>scheduling server</a>.
|
2002-09-10 17:04:05 +00:00
|
|
|
|
|
|
|
<h3>Web server configuration</h3>
|
|
|
|
<p>
|
|
|
|
You must edit your web server configuration file
|
|
|
|
to allow access to the download directory
|
|
|
|
and to the file-upload CGI program.
|
|
|
|
For example, the addition to Apache's httpd.conf might be:
|
|
|
|
<pre>
|
|
|
|
Alias /barry/ "/users/barry/"
|
|
|
|
|
|
|
|
<Directory "/users/barry/">
|
|
|
|
Options Indexes FollowSymlinks MultiViews
|
|
|
|
AllowOverride None
|
|
|
|
Order allow,deny
|
|
|
|
Alias from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
ScriptAlias /boinc-cgi/ "/users/barry/cgi/"
|
|
|
|
|
|
|
|
<Directory "/users/barry/cgi/">
|
|
|
|
AllowOverride None
|
|
|
|
Options None
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
</pre>
|
2002-11-09 20:26:50 +00:00
|
|
|
You should also set the default MIME type as follows:
|
|
|
|
<pre>
|
|
|
|
DefaultType application/octet-stream
|
|
|
|
</pre>
|