Changes between Version 10 and Version 11 of MultiHost
- Timestamp:
- Feb 5, 2008, 3:21:02 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultiHost
v10 v11 12 12 13 13 == Use Fast CGI == 14 [http:// www.fastcgi.com/ Fast CGI] uses long-lived processes that handle lots of requests, instead of creating a new process14 [http://fastcgi.coremail.cn/ Fast CGI] uses long-lived processes that handle lots of requests, instead of creating a new process 15 15 for each request. 16 16 This eliminates the overhead of creating processes and connecting to the database. 17 17 To use Fast CGI: 18 * Build (or yum ) an Apache server with mod_fastcgi18 * Build (or yum or apt-get) an Apache server with mod_fcgid (or mod_fastcgi - an older compatible version of mod_fcgid) 19 19 * compile the Fast CGI version of the scheduler (`fcgi`) and file upload handler (`fcgi_file_upload_handler`) 20 20 * 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 {{{ 23 AddHandler fcgid-script fcg fcgi fpl 24 }}} 25 change to: 26 {{{ 27 AddHandler 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 {{{ 39 ScriptAlias /boinc_cgi /home/boinc/projects/cgi-bin 40 }}} 41 So make the Location line: <Location /boinc_cgi> 25 42 * restart Apache. 26 43