2003-08-19 06:44:58 +00:00
|
|
|
<?
|
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Setting up a data server");
|
|
|
|
echo "
|
2002-09-10 17:04:05 +00:00
|
|
|
|
|
|
|
<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>
|
2003-08-19 06:44:58 +00:00
|
|
|
Alias /barry/ \"/users/barry/\"
|
2002-09-10 17:04:05 +00:00
|
|
|
|
2003-08-19 06:44:58 +00:00
|
|
|
<Directory \"/users/barry/\">
|
2002-09-10 17:04:05 +00:00
|
|
|
Options Indexes FollowSymlinks MultiViews
|
|
|
|
AllowOverride None
|
|
|
|
Order allow,deny
|
|
|
|
Alias from all
|
|
|
|
</Directory>
|
|
|
|
|
2003-08-19 06:44:58 +00:00
|
|
|
ScriptAlias /boinc-cgi/ \"/users/barry/cgi/\"
|
2002-09-10 17:04:05 +00:00
|
|
|
|
2003-08-19 06:44:58 +00:00
|
|
|
<Directory \"/users/barry/cgi/\">
|
2002-09-10 17:04:05 +00:00
|
|
|
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>
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|