Changes between Version 10 and Version 11 of MultiHost


Ignore:
Timestamp:
Feb 5, 2008, 3:21:02 PM (16 years ago)
Author:
mattl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MultiHost

    v10 v11  
    1212
    1313== Use Fast CGI ==
    14 [http://www.fastcgi.com/ Fast CGI] uses long-lived processes that handle lots of requests, instead of creating a new process
     14[http://fastcgi.coremail.cn/ Fast CGI] uses long-lived processes that handle lots of requests, instead of creating a new process
    1515for each request.
    1616This eliminates the overhead of creating processes and connecting to the database.
    1717To use Fast CGI:
    18  * Build (or yum) an Apache server with mod_fastcgi
     18 * Build (or yum or apt-get) an Apache server with mod_fcgid (or mod_fastcgi - an older compatible version of mod_fcgid)
    1919 * compile the Fast CGI version of the scheduler (`fcgi`) and file upload handler (`fcgi_file_upload_handler`)
    2020 * Copy these to your project's cgi-bin directory, with the names 'cgi' and 'file_upload_handler'.
    21  * Add the following to your httpd.conf:
    22 {{{
    23 AddHandler fcgid-script .cgi cgi .fcgi fcgi
    24 }}}
     21 * Edit the following line in your fcgid.conf (usually in /etc/httpd/conf.d/fcgid.conf):
     22{{{
     23AddHandler fcgid-script fcg fcgi fpl
     24}}}
     25change to:
     26{{{
     27AddHandler fcgid-script fcg fcgi fpl
     28}}}
     29 * Add the following directive to your httpd.conf (usually in /etc/httpd/conf):
     30{{{
     31<Location /cgi-bin>
     32 SetHandler fcgid-script
     33 Options ExecCGI
     34 allow from all
     35</Location>
     36}}}
     37..except change "cgi-bin" to the name of the URL path to your actual cgi directory according to any alias you may have used in apache. For example a project might have the scheduler URL {{{http://boinc.project.edu/boinc_cgi/cgi}}} which is scriptalias'ed in httpd.conf:
     38{{{
     39ScriptAlias /boinc_cgi /home/boinc/projects/cgi-bin
     40}}}
     41So make the Location line: <Location /boinc_cgi>
    2542 * restart Apache.
    2643