Update to 2.1
This commit is contained in:
parent
c5881afa33
commit
dd0b463620
@ -1 +1 @@
|
|||||||
mod_fcgid.2.0.tar.gz
|
mod_fcgid.2.1.tar.gz
|
||||||
|
@ -1,156 +1,238 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
|
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
|
||||||
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
|
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
|
||||||
<meta name="ProgId" content="FrontPage.Editor.Document">
|
<meta name="ProgId" content="FrontPage.Editor.Document">
|
||||||
<title>The mod_fcgid Home Page</title>
|
<title>The mod_fcgid Home Page</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<p><b><a name="regular fastcgi"></a>This is a for regular fastcgi. </b></p>
|
||||||
<p><b><a name="regular fastcgi"></a>This is a for regular fastcgi. </b><p>LoadModule fcgid_module
|
<p>LoadModule fcgid_module modules/mod_fcgid.so</p>
|
||||||
modules/mod_fcgid.so<p>
|
<p><Location /fcgid><br>
|
||||||
<Location /fcgid><br>
|
SetHandler fcgid-script<br>
|
||||||
SetHandler fcgid-script<br>
|
Options ExecCGI<br>
|
||||||
Options ExecCGI<br>
|
allow from all<br>
|
||||||
allow from all<br>
|
</Location></p>
|
||||||
</Location><p>
|
<p>
|
||||||
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
<p><b><a name="suEXEC"></a>This is for suEXEC. Please get more information about suEXEC <a href="http://httpd.apache.org/docs-2.0/suexec.html">here</a>. </b><p>LoadModule fcgid_module
|
<p><b><a name="suEXEC"></a>This is for suEXEC. Please get more
|
||||||
modules/mod_fcgid.so<p>
|
information about suEXEC <a
|
||||||
<Location /fcgid><br>
|
href="http://httpd.apache.org/docs-2.0/suexec.html">here</a>. </b></p>
|
||||||
SetHandler fcgid-script<br>
|
<p>LoadModule fcgid_module modules/mod_fcgid.so</p>
|
||||||
Options ExecCGI<br>
|
<p><Location /fcgid><br>
|
||||||
allow from all<br>
|
SetHandler fcgid-script<br>
|
||||||
</Location><p>
|
Options ExecCGI<br>
|
||||||
<VirtualHost 192.168.1.89><br>
|
allow from all<br>
|
||||||
ServerAdmin <a href="mailto:webmaster@host.foo.com">webmaster@host.foo.com<br>
|
</Location></p>
|
||||||
</a> DocumentRoot /usr/local/apache2/htdocs/<br>
|
<p><VirtualHost 192.168.1.89><br>
|
||||||
ServerName host.foo.com<br>
|
ServerAdmin <a href="mailto:webmaster@host.foo.com">webmaster@host.foo.com<br>
|
||||||
SuexecUserGroup pqf pqf<br>
|
</a> DocumentRoot /usr/local/apache2/htdocs/<br>
|
||||||
</VirtualHost><p>
|
ServerName host.foo.com<br>
|
||||||
¡¡
|
SuexecUserGroup pqf pqf<br>
|
||||||
|
</VirtualHost></p>
|
||||||
|
<p>¡¡
|
||||||
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
<p><b><a name="PHP"></a>This is for fastcgi-mode PHP (UNIX)</b><p>LoadModule fcgid_module modules/mod_fcgid.so<p>
|
<p><b><a name="PHP"></a>This is for fastcgi-mode PHP (UNIX)</b></p>
|
||||||
<Directory /usr/local/apache2/htdocs/php><br>
|
<p>LoadModule fcgid_module modules/mod_fcgid.so</p>
|
||||||
SetHandler fcgid-script<br>
|
<p> <Directory /usr/local/apache2/htdocs/php><br>
|
||||||
FCGIWrapper /usr/local/bin/php .php<br>
|
SetHandler fcgid-script<br>
|
||||||
Options ExecCGI<br>
|
FCGIWrapper /usr/local/bin/php .php
|
||||||
allow from all<br>
|
</p>
|
||||||
</Directory><p><b>This works too:</b><p>LoadModule fcgid_module
|
<p> <span style="font-weight: bold;"># You need mod_fcgid
|
||||||
modules/mod_fcgid.so <p>
|
version >= 2.1 to support arguments in FCGIWrapper, if you want<br>
|
||||||
AddHandler fcgid-script .php<br>
|
# FCGIWrapper "/usr/local/bin/php -c /etc/" .php</span></p>
|
||||||
<Directory /usr/local/apache2/htdocs/php><br>
|
Options ExecCGI<br>
|
||||||
FCGIWrapper /usr/local/bin/php .php<br>
|
<p> allow from all<br>
|
||||||
Options ExecCGI<br>
|
</Directory></p>
|
||||||
allow from all<br>
|
<p><b>This works too:</b></p>
|
||||||
</Directory><p><b># Please make sure:<br>
|
<p>LoadModule fcgid_module modules/mod_fcgid.so </p>
|
||||||
# php is configured with --enable-fastcgi option<br>
|
<p>AddHandler fcgid-script .php<br>
|
||||||
# check error_log(with debug level), if
|
<Directory /usr/local/apache2/htdocs/php><br>
|
||||||
any thing goes wrong</b>
|
FCGIWrapper /usr/local/bin/php .php</p>
|
||||||
|
<p> <span style="font-weight: bold;">#</span> <span
|
||||||
|
style="font-weight: bold;">You need mod_fcgid version >= 2.1 to
|
||||||
|
support arguments in FCGIWrapper, if you want<br>
|
||||||
|
# FCGIWrapper "/usr/local/bin/php -c /etc/" .php</span></p>
|
||||||
|
<p> Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
|
</Directory></p>
|
||||||
|
<p><b># Please make sure:<br>
|
||||||
|
# php is configured with --enable-fastcgi option<br>
|
||||||
|
# check error_log(with debug level), if any thing goes wrong</b> </p>
|
||||||
|
<p> </p>
|
||||||
<hr>
|
<hr>
|
||||||
<p><b><a name="suPHP"></a>This is for suPHP ( UNIX )</b>
|
<p><b><a name="Ruby"></a>This is for fastcgi-mode </b><span
|
||||||
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>
|
style="font-weight: bold;">Ruby on Rails ( Thank Andre Nathan giving
|
||||||
|
me this demo configuration )<br>
|
||||||
|
</span><br>
|
||||||
|
LoadModule fcgid_module modules/mod_fcgid.so<br>
|
||||||
|
SocketPath /tmp/fcgidsock<br>
|
||||||
|
SharememPath /tmp/fcgidshm<br>
|
||||||
|
DefaultInitEnv RAILS_ENV production<br>
|
||||||
<br>
|
<br>
|
||||||
<VirtualHost *:80><br>
|
<Directory /home/sneakymustard/tumble/public><br>
|
||||||
ServerName test2.example.com<br>
|
Options ExecCGI FollowSymLinks<br>
|
||||||
DocumentRoot /usr/local/apache2/htdocs/test2.example.com/<br>
|
AllowOverride AuthConfig Indexes Limit<br>
|
||||||
SuexecUserGroup pqf pqf<br>
|
Order allow,deny<br>
|
||||||
</VirtualHost><br>
|
Allow from all<br>
|
||||||
<br>
|
<br>
|
||||||
<Directory /usr/local/apache2/htdocs/test2.example.com/><br>
|
AddHandler fcgid-script .fcgi</p>
|
||||||
AddHandler fcgid-script .php<br>
|
<p><span style="font-weight: bold;"> # You need
|
||||||
Options ExecCGI<br>
|
mod_fcgid version >= 2.1 to support arguments "xxx/dispatch.fcgi" in
|
||||||
allow from all<br>
|
FCGIWrapper <br>
|
||||||
FCGIWrapper /usr/local/apache2/htdocs/test2.example.com/php .php<br>
|
</span> FCGIWrapper "/usr/bin/ruby
|
||||||
</Directory></p>
|
/home/sneakymustard/tumble/public/dispatch.fcgi" .fcgi<br>
|
||||||
<p>
|
|
||||||
<b>
|
|
||||||
# Please make sure:<br>
|
|
||||||
# php is configured with --enable-fastcgi option<br>
|
|
||||||
# copy php execution to /usr/local/apache2/htdocs/test2.example.com/ directory<br>
|
|
||||||
# make sure all files in /usr/local/apache2/htdocs/test2.example.com/ with right
|
|
||||||
owner and group<br>
|
|
||||||
# check error_log(with debug level) and suexec_log, if
|
|
||||||
any thing goes wrong</b>
|
|
||||||
<br>
|
<br>
|
||||||
|
RewriteEngine On<br>
|
||||||
|
RewriteRule ^$ index.html [QSA]<br>
|
||||||
|
RewriteRule ^([^.]+)$ $1.html [QSA]<br>
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f<br>
|
||||||
|
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]<br>
|
||||||
|
</Directory><br>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
<span style="font-weight: bold;"></span>
|
||||||
|
<p> </p>
|
||||||
|
<hr>
|
||||||
|
<p><b><a name="suPHP"></a>This is for suPHP ( UNIX )</b> </p>
|
||||||
|
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>
|
||||||
|
<br>
|
||||||
|
<VirtualHost *:80><br>
|
||||||
|
ServerName test2.example.com<br>
|
||||||
|
DocumentRoot
|
||||||
|
/usr/local/apache2/htdocs/test2.example.com/<br>
|
||||||
|
SuexecUserGroup pqf pqf<br>
|
||||||
|
</VirtualHost><br>
|
||||||
|
<br>
|
||||||
|
<Directory /usr/local/apache2/htdocs/test2.example.com/><br>
|
||||||
|
AddHandler fcgid-script .php<br>
|
||||||
|
Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
|
FCGIWrapper
|
||||||
|
/usr/local/apache2/htdocs/test2.example.com/php .php</p>
|
||||||
|
<p></p>
|
||||||
|
<p> <span style="font-weight: bold;">#</span> <span
|
||||||
|
style="font-weight: bold;">You need mod_fcgid version >= 2.1 to
|
||||||
|
support arguments in FCGIWrapper, if you want<br>
|
||||||
|
# FCGIWrapper "/usr/local/bin/php -c /etc/" .php</span></p>
|
||||||
|
<p> </Directory></p>
|
||||||
|
<p> <b> # Please make sure:<br>
|
||||||
|
# php is configured with --enable-fastcgi option<br>
|
||||||
|
# copy php execution to /usr/local/apache2/htdocs/test2.example.com/
|
||||||
|
directory<br>
|
||||||
|
# make sure all files in /usr/local/apache2/htdocs/test2.example.com/
|
||||||
|
with right owner and group<br>
|
||||||
|
# check error_log(with debug level) and suexec_log, if any thing goes
|
||||||
|
wrong</b> <br>
|
||||||
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
<p><br>
|
<p><br>
|
||||||
<b><a name="PHP-Windows"></a>This is for fastcgi-mode PHP ( Windows )</b><p>LoadModule fcgid_module modules/mod_fcgid.so<p>
|
<b><a name="PHP-Windows"></a>This is for fastcgi-mode PHP ( Windows )</b>
|
||||||
<Directory "C:/Apache2/htdocs/php/"><br>
|
</p>
|
||||||
SetHandler fcgid-script<br>
|
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>
|
||||||
Options execCGI<br>
|
DefaultInitEnv PHPRC "c:/php/"<br>
|
||||||
AllowOverride None<br>
|
DefaultInitEnv PATH
|
||||||
Order allow,deny<br>
|
"c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"<br>
|
||||||
Allow from all<br>
|
DefaultInitEnv SystemRoot "C:/Windows"<br>
|
||||||
FCGIWrapper "c:/php/php.exe" .php<br>
|
DefaultInitEnv SystemDrive "C:"<br>
|
||||||
</Directory><p><b>This works too:</b><p>LoadModule fcgid_module modules/mod_fcgid.so <p>
|
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"<br>
|
||||||
AddHandler fcgid-script .php<br>
|
DefaultInitEnv TMP "C:/WINDOWS/TEMP"<br>
|
||||||
<Directory "C:/Apache2/htdocs/php/"><br>
|
DefaultInitEnv windir "C:/WINDOWS"<br>
|
||||||
FCGIWrapper "c:/php/php.exe" .php<br>
|
<Directory "C:/Apache2/htdocs/php/"><br>
|
||||||
Options ExecCGI<br>
|
SetHandler fcgid-script<br>
|
||||||
allow from all<br>
|
Options execCGI<br>
|
||||||
|
AllowOverride None<br>
|
||||||
|
Order allow,deny<br>
|
||||||
|
Allow from all<br>
|
||||||
|
FCGIWrapper "c:/php/php.exe" .php</p>
|
||||||
|
<p> <span style="font-weight: bold;">#</span> <span
|
||||||
|
style="font-weight: bold;">You need mod_fcgid version >= 2.1 to
|
||||||
|
support arguments in FCGIWrapper, if you want<br>
|
||||||
|
# FCGIWrapper "/usr/local/bin/php -c /etc/" .php</span><br>
|
||||||
|
</Directory></p>
|
||||||
|
<p><b>This works too:</b>
|
||||||
|
</p>
|
||||||
|
<p>LoadModule fcgid_module modules/mod_fcgid.so<br>
|
||||||
|
DefaultInitEnv PHPRC "c:/php/"<br>
|
||||||
|
DefaultInitEnv PATH
|
||||||
|
"c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"<br>
|
||||||
|
DefaultInitEnv SystemRoot "C:/Windows"<br>
|
||||||
|
DefaultInitEnv SystemDrive "C:"<br>
|
||||||
|
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"<br>
|
||||||
|
DefaultInitEnv TMP "C:/WINDOWS/TEMP"<br>
|
||||||
|
DefaultInitEnv windir "C:/WINDOWS"<br>
|
||||||
|
AddHandler fcgid-script .php<br>
|
||||||
|
<Directory "C:/Apache2/htdocs/php/"><br>
|
||||||
|
FCGIWrapper "c:/php/php.exe" .php</p>
|
||||||
|
<p> <span style="font-weight: bold;">#</span> <span
|
||||||
|
style="font-weight: bold;">You need mod_fcgid version >= 2.1 to
|
||||||
|
support arguments in FCGIWrapper, if you want<br>
|
||||||
|
# FCGIWrapper "/usr/local/bin/php -c /etc/" .php<br>
|
||||||
|
</span></p>
|
||||||
|
<p><span style="font-weight: bold;"></span>
|
||||||
|
Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
</Directory><br>
|
</Directory><br>
|
||||||
|
|
||||||
<hr>
|
|
||||||
<p><b><a name="Authenticator"></a>This is for Authenticator</b></p>
|
|
||||||
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
|
||||||
<p><Location /fcgid><br>
|
|
||||||
SetHandler fcgid-script<br>
|
|
||||||
Options ExecCGI<br>
|
|
||||||
allow from all<br>
|
|
||||||
AuthType Basic<br>
|
|
||||||
AuthName ProtectedRealm<br>
|
|
||||||
FastCgiAuthenticator /some/path/authenticator<br>
|
|
||||||
require valid-user<br>
|
|
||||||
</Location><br>
|
|
||||||
</p>
|
</p>
|
||||||
<p><b>Another configuration: <a name="FastCgiAuthenticatorAuthoritative">FastCgiAuthenticatorAuthoritative</a>
|
|
||||||
(default On)</b></p>
|
|
||||||
<p>Setting the <code>FastCgiAuthenticatorAuthoritative</code> directive
|
|
||||||
explicitly to <em>Off</em> allows authentication to be passed on to lower level
|
|
||||||
modules</p>
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<p><b><a name="Authorizer"></a>This is for Authorizer</b></p>
|
<p><b><a name="Authenticator"></a>This is for Authenticator</b></p>
|
||||||
|
|
||||||
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
||||||
<p><Location /fcgid><br>
|
|
||||||
SetHandler fcgid-script<br>
|
|
||||||
Options ExecCGI<br>
|
|
||||||
allow from all<br>
|
|
||||||
AuthType Basic<br>
|
|
||||||
AuthName ProtectedRealm<br>
|
|
||||||
FastCgiAuthorizer /some/place/Authorizer<br>
|
|
||||||
</Location></p>
|
|
||||||
|
|
||||||
<p><b>Another configuration: <a name="FastCgiAuthorizerAuthoritative">FastCgiAuthorizerAuthoritative</a>
|
|
||||||
(default On)</b></p>
|
|
||||||
|
|
||||||
<p>Setting the <code>FastCgiAuthorizerAuthoritative</code> directive explicitly
|
|
||||||
to <em>Off</em> allows authorization to be passed on to lower level modules</p>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<p><b><a name="AccessChecker"></a>This is for AccessChecker</b></p>
|
|
||||||
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
|
||||||
<p><Location /fcgid><br>
|
|
||||||
SetHandler fcgid-script<br>
|
|
||||||
Options ExecCGI<br>
|
|
||||||
allow from all<br>
|
|
||||||
FastCgiAccessChecker /some/place/access-checker<br>
|
|
||||||
</Location><br>
|
|
||||||
</p>
|
</p>
|
||||||
<p><b>Another configuration: </b><a name="FastCgiAccessCheckerAuthoritative"><b>FastCgiAccessCheckerAuthoritative</b></a><b>
|
<p><Location /fcgid><br>
|
||||||
|
SetHandler fcgid-script<br>
|
||||||
|
Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
|
AuthType Basic<br>
|
||||||
|
AuthName ProtectedRealm<br>
|
||||||
|
FastCgiAuthenticator /some/path/authenticator<br>
|
||||||
|
require valid-user<br>
|
||||||
|
</Location><br>
|
||||||
|
</p>
|
||||||
|
<p><b>Another configuration: <a
|
||||||
|
name="FastCgiAuthenticatorAuthoritative">FastCgiAuthenticatorAuthoritative</a>
|
||||||
(default On)</b></p>
|
(default On)</b></p>
|
||||||
<p>Setting the <code>FastCgiAccessCheckerAuthoritative</code> directive
|
<p>Setting the <code>FastCgiAuthenticatorAuthoritative</code>
|
||||||
explicitly to <em>Off</em> allows access checking to be passed on to lower level
|
directive explicitly to <em>Off</em> allows authentication to be
|
||||||
modules</p>
|
passed on to lower level modules</p>
|
||||||
<p>¡¡</p>
|
<hr>
|
||||||
<p>¡¡</p>
|
<p><b><a name="Authorizer"></a>This is for Authorizer</b></p>
|
||||||
|
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
||||||
|
</p>
|
||||||
|
<p><Location /fcgid><br>
|
||||||
|
SetHandler fcgid-script<br>
|
||||||
|
Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
|
AuthType Basic<br>
|
||||||
|
AuthName ProtectedRealm<br>
|
||||||
|
FastCgiAuthorizer /some/place/Authorizer<br>
|
||||||
|
</Location></p>
|
||||||
|
<p><b>Another configuration: <a name="FastCgiAuthorizerAuthoritative">FastCgiAuthorizerAuthoritative</a>
|
||||||
|
(default On)</b></p>
|
||||||
|
<p>Setting the <code>FastCgiAuthorizerAuthoritative</code> directive
|
||||||
|
explicitly to <em>Off</em> allows authorization to be passed on to
|
||||||
|
lower level modules</p>
|
||||||
|
<hr>
|
||||||
|
<p><b><a name="AccessChecker"></a>This is for AccessChecker</b></p>
|
||||||
|
<p>LoadModule fcgid_module modules/mod_fcgid.so
|
||||||
|
</p>
|
||||||
|
<p><Location /fcgid><br>
|
||||||
|
SetHandler fcgid-script<br>
|
||||||
|
Options ExecCGI<br>
|
||||||
|
allow from all<br>
|
||||||
|
FastCgiAccessChecker /some/place/access-checker<br>
|
||||||
|
</Location><br>
|
||||||
|
</p>
|
||||||
|
<p><b>Another configuration: </b><a
|
||||||
|
name="FastCgiAccessCheckerAuthoritative"><b>FastCgiAccessCheckerAuthoritative</b></a><b>
|
||||||
|
(default On)</b></p>
|
||||||
|
<p>Setting the <code>FastCgiAccessCheckerAuthoritative</code>
|
||||||
|
directive explicitly to <em>Off</em> allows access checking to be
|
||||||
|
passed on to lower level modules</p>
|
||||||
|
<p>¡¡</p>
|
||||||
|
<p>¡¡</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
@ -171,7 +253,5 @@ modules</p>
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
303
doc.htm
303
doc.htm
@ -1,113 +1,210 @@
|
|||||||
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<title>The mod_fcgid Home Page</title>
|
||||||
<title>The mod_fcgid Home Page</title>
|
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body bgcolor="#ffffff">
|
<body bgcolor="#ffffff">
|
||||||
|
|
||||||
<table border="0" cellpadding="5" cellspacing="0" width="893">
|
<table border="0" cellpadding="5" cellspacing="0" width="893">
|
||||||
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td align="center" valign="top" width="200">
|
||||||
<td align="center" valign="top" width="200">
|
<table cellpadding="5" cellspacing="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td align="left" bgcolor="#f8eda6" nowrap="nowrap"> <a
|
||||||
<table cellpadding="5" cellspacing="0">
|
href="index.htm">Home</a> <br>
|
||||||
|
<a href="index.cn.htm">Chinese Info</a> <br>
|
||||||
<tr>
|
<a href="download.htm">Download (source)</a> <br>
|
||||||
|
<a href="doc.htm">Documentations</a> <br>
|
||||||
<td nowrap bgcolor="#f8eda6" align="left">
|
<a href="feedback.htm">Feedback</a> <br>
|
||||||
|
<a
|
||||||
<a href="index.htm">Home</a> <br>
|
href="http://sourceforge.net/donate/index.php?group_id=174879"><img
|
||||||
<a href="index.cn.htm">Chinese Info</a> <br>
|
src="http://images.sourceforge.net/images/project-support.jpg"
|
||||||
<a href="download.htm">Download (source)</a> <br>
|
alt="Support This Project" border="0" height="32" width="88"> </a> </td>
|
||||||
<a href="doc.htm">Documentations</a> <br>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<a href="feedback.htm">Feedback</a>
|
</td>
|
||||||
|
<td valign="top" width="669">
|
||||||
|
<ul>
|
||||||
</td> </tr> </table> </td>
|
<li>
|
||||||
|
<p><b><font size="4">Here are some examples of configuration</font></b></p>
|
||||||
<td valign="top" width="669">
|
</li>
|
||||||
|
</ul>
|
||||||
<ul>
|
<p><a href="configuration.htm#regular%20fastcgi">Configuration
|
||||||
<li>
|
for Regular fastcgi
|
||||||
|
(non-PHP, non-Ruby, non-Python) </a></p>
|
||||||
<p><b><font size="4">Here are some examples of configuration</font></b></p>
|
<p><a href="configuration.htm#suEXEC">Configuration
|
||||||
</li>
|
for suEXEC fastcgi</a></p>
|
||||||
</ul>
|
<p><a href="configuration.htm#PHP">Configuration for PHP
|
||||||
|
(UNIX)</a><br>
|
||||||
<p><a href="configuration.htm#regular fastcgi">Configuration for Regular fastcgi
|
</p>
|
||||||
(non-PHP, non-Ruby, non-Python) </a><p><a href="configuration.htm#suEXEC">Configuration
|
<p><a href="configuration.htm#Ruby">Configuration for Ruby on
|
||||||
for suEXEC fastcgi</a><p><a href="configuration.htm#PHP">Configuration for PHP
|
Rails</a><br>
|
||||||
(UNIX)</a><p><a href="configuration.htm#suPHP">Configuration for suPHP (UNIX)</a><p><a href="configuration.htm#PHP-Windows">Configuration
|
</p>
|
||||||
for PHP (Windows)</a><p><a href="configuration.htm#Authenticator">Configuration
|
<p><a href="configuration.htm#suPHP">Configuration for suPHP
|
||||||
for Authenticator</a><p><a href="configuration.htm#Authorizer">Configuration
|
(UNIX)</a></p>
|
||||||
for Authorizer</a><p><a href="configuration.htm#AccessChecker">Configuration
|
<p><a href="configuration.htm#PHP-Windows">Configuration
|
||||||
for AccessChecker</a><p>
|
for PHP (Windows)</a></p>
|
||||||
<hr>
|
<p><a href="configuration.htm#Authenticator">Configuration
|
||||||
<ul>
|
for Authenticator</a></p>
|
||||||
<li><h2><b><font size="4">There are
|
<p><a href="configuration.htm#Authorizer">Configuration
|
||||||
|
for Authorizer</a></p>
|
||||||
|
<p><a href="configuration.htm#AccessChecker">Configuration
|
||||||
|
for AccessChecker</a></p>
|
||||||
|
<p> </p>
|
||||||
|
<hr>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<h2><a class="mozTocH2" name="mozTocId601839"></a><b><font
|
||||||
|
size="4">There are
|
||||||
some other configurations you can set</font></b></h2>
|
some other configurations you can set</font></b></h2>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><b>IdleTimeout n (300
|
<p><b>IdleTimeout n (300
|
||||||
seconds)</b><p>An idle fastcgi application will be terminated after IdleTimeout
|
seconds)</b></p>
|
||||||
seconds. <p><b>IdleScanInterval n (120 seconds)</b><p>The scan interval for idle
|
<p>An idle fastcgi application will be terminated after
|
||||||
fastcgi applications. <p><b>BusyTimeout n (300 seconds)</b><p>a fastcgi
|
IdleTimeout
|
||||||
application will be terminated if handing a single request longer than busy
|
seconds. </p>
|
||||||
timeout.<p><b>BusyScanInterval n (120 seconds)</b><p>The scan interval for busy
|
<p><b>IdleScanInterval n (120 seconds)</b></p>
|
||||||
timeout fastcgi applications.<p><b>ErrorScanInterval n (3 seconds)</b><p>The
|
<p>The scan interval for idle
|
||||||
scan interval for exit pending fastcgi applications. fastcgi applications will
|
fastcgi applications. </p>
|
||||||
be terminated within this scanning.<p><b>ZombieScanInterval n (3 seconds)</b><p>The
|
<p><b>BusyTimeout n (300 seconds)</b></p>
|
||||||
scan interval for zombie process. <p><b>ProcessLifeTime n (3600 seconds)</b><p>A
|
<p>a fastcgi
|
||||||
fastcgi application will be terminated if lifetime expired, even no error is
|
application will be terminated if handing a single request longer than
|
||||||
detected.<p><b>SocketPath path (logs/fcgidsock)</b><p>The directory to put the
|
busy
|
||||||
UNIX domain socket. (UNIX only)<p><b>SpawnScoreUpLimit n (10)</b><p>The
|
timeout.</p>
|
||||||
spawn-speed control score up water limit. Score increases while a process is spawned or terminated, and decreases
|
<p><b>BusyScanInterval n (120 seconds)</b></p>
|
||||||
as time progresses; while the score is higher than <b>SpawnScoreUpLimit</b>, the spawning will be
|
<p>The scan interval for busy
|
||||||
held for a while. The higher this number is, the higher speed of the spawning
|
timeout fastcgi applications.</p>
|
||||||
can be.<p><b>SpawnScore n (1)</b><p>The weight of spawning. This weight
|
<p><b>ErrorScanInterval n (3 seconds)</b></p>
|
||||||
will be plused to the spawn-control score on every spawn. The higher this number
|
<p>The
|
||||||
is, the lower speed of spawning can be.<p><b>TerminationScore n (2)</b><p>The
|
scan interval for exit pending fastcgi applications. fastcgi
|
||||||
weight of termination. This weight will be plused to the score while fastcgi
|
applications will
|
||||||
process terminates. The higher this number is, the lower speed of spawning can
|
be terminated within this scanning.</p>
|
||||||
be.<p><b>MaxProcessCount n (1000)</b><p>The max count of total fastcgi process
|
<p><b>ZombieScanInterval n (3 seconds)</b></p>
|
||||||
count.<p><b>DefaultMaxClassProcessCount n (100)</b><p>The maximum number of
|
<p>The
|
||||||
fastcgi application instances allowed to run for any one fastcgi application. <p><b>DefaultMinClassProcessCount n
|
scan interval for zombie process. </p>
|
||||||
(3)</b><p>The minimum number of
|
<p><b>ProcessLifeTime n (3600 seconds)</b></p>
|
||||||
fastcgi application instances for any one fastcgi application. <p><b>DefaultInitEnv
|
<p>A
|
||||||
env_name env_value</b><p>The default environment variables before a fastcgi
|
fastcgi application will be terminated if lifetime expired, even no
|
||||||
|
error is
|
||||||
|
detected.</p>
|
||||||
|
<p><b>SocketPath path (logs/fcgidsock)</b></p>
|
||||||
|
<p>The directory to put the
|
||||||
|
UNIX domain socket. (UNIX only)<br>
|
||||||
|
</p>
|
||||||
|
<p><span style="font-weight: bold;">SharememPath path
|
||||||
|
(logs/fcgid_shm)</span><br>
|
||||||
|
</p>
|
||||||
|
<p>The share memory file path. (UNIX only) (version >= 2.1
|
||||||
|
only)<br>
|
||||||
|
</p>
|
||||||
|
<p><b>SpawnScoreUpLimit n (10)</b></p>
|
||||||
|
<p>The
|
||||||
|
spawn-speed control score up water limit. Score increases while a
|
||||||
|
process is spawned or terminated, and decreases
|
||||||
|
as time progresses; while the score is higher than <b>SpawnScoreUpLimit</b>,
|
||||||
|
the spawning will be
|
||||||
|
held for a while. The higher this number is, the higher speed of the
|
||||||
|
spawning
|
||||||
|
can be.</p>
|
||||||
|
<p><b>SpawnScore n (1)</b></p>
|
||||||
|
<p>The weight of spawning. This weight
|
||||||
|
will be plused to the spawn-control score on every spawn. The higher
|
||||||
|
this number
|
||||||
|
is, the lower speed of spawning can be.</p>
|
||||||
|
<p><b>TerminationScore n (2)</b></p>
|
||||||
|
<p>The
|
||||||
|
weight of termination. This weight will be plused to the score while
|
||||||
|
fastcgi
|
||||||
|
process terminates. The higher this number is, the lower speed of
|
||||||
|
spawning can
|
||||||
|
be.</p>
|
||||||
|
<p><b>MaxProcessCount n (1000)</b></p>
|
||||||
|
<p>The max count of total fastcgi process
|
||||||
|
count.</p>
|
||||||
|
<p><b>DefaultMaxClassProcessCount n (100)</b></p>
|
||||||
|
<p>The maximum number of
|
||||||
|
fastcgi application instances allowed to run for any one fastcgi
|
||||||
|
application. </p>
|
||||||
|
<p><b>DefaultMinClassProcessCount n
|
||||||
|
(3)</b></p>
|
||||||
|
<p>The minimum number of
|
||||||
|
fastcgi application instances for any one fastcgi application. </p>
|
||||||
|
<p><b>DefaultInitEnv
|
||||||
|
env_name env_value</b></p>
|
||||||
|
<p>The default environment variables before a fastcgi
|
||||||
application is spawned. You can set this configuration more
|
application is spawned. You can set this configuration more
|
||||||
than once.<p><b>IPCConnectTimeout n (3 seconds)</b><p>The connect timeout to a
|
than once.<br>
|
||||||
fastcgi application. <p><b>IPCCommTimeout n (20 seconds)</b><p>The communication
|
</p>
|
||||||
timeout to a fastcgi application. Please increase this value if your CGI have a
|
<table style="text-align: left; width: 667px; height: 147px;"
|
||||||
slow initialization or slow respond.<p><b>OutputBufferSize n (64k bytes)</b><p>CGI
|
border="1" cellpadding="2" cellspacing="2">
|
||||||
output cache buffer size.<p><b>PHP_Fix_Pathinfo_Enable</b><b> n(n=0/1, default 0)</b><p>If
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="vertical-align: top;">Note: If you get:<br>
|
||||||
|
<div><span style="font-weight: bold;">Can't create TCP/IP
|
||||||
|
socket (10106)</span> error while running PHP script(<span
|
||||||
|
style="font-weight: bold;">on Win32 only</span>), you will have to set
|
||||||
|
these(<span style="font-weight: bold;">Please modify the values if
|
||||||
|
necessary</span>):<br>
|
||||||
|
<font face="Arial" size="2">DefaultInitEnv PHPRC "c:/php/"<br>
|
||||||
|
DefaultInitEnv PATH
|
||||||
|
"c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"<br>
|
||||||
|
DefaultInitEnv SystemRoot "C:/Windows"<br>
|
||||||
|
DefaultInitEnv SystemDrive "C:"<br>
|
||||||
|
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"<br>
|
||||||
|
DefaultInitEnv TMP "C:/WINDOWS/TEMP"<br>
|
||||||
|
DefaultInitEnv windir "C:/WINDOWS"<br>
|
||||||
|
<br>
|
||||||
|
(Thank Steffen of apachelounge.com for this note)<br>
|
||||||
|
</font></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p><br>
|
||||||
|
</p>
|
||||||
|
<p><b>IPCConnectTimeout n (3 seconds)</b></p>
|
||||||
|
<p>The connect timeout to a
|
||||||
|
fastcgi application. </p>
|
||||||
|
<p><b>IPCCommTimeout n (20 seconds)</b></p>
|
||||||
|
<p>The communication
|
||||||
|
timeout to a fastcgi application. Please increase this value if your
|
||||||
|
CGI have a
|
||||||
|
slow initialization or slow respond.</p>
|
||||||
|
<p><b>OutputBufferSize n (64k bytes)</b></p>
|
||||||
|
<p>CGI
|
||||||
|
output cache buffer size.</p>
|
||||||
|
<p><b>PHP_Fix_Pathinfo_Enable</b><b> n(n=0/1, default 0)</b></p>
|
||||||
|
<p>If
|
||||||
you are using PHP and set cgi.fix_pathinfo=1 in php.ini, set
|
you are using PHP and set cgi.fix_pathinfo=1 in php.ini, set
|
||||||
PHP_Fix_Pathinfo_Enable 1.<p><b>MaxRequestsPerProcess n (-1)</b><p>(Added in
|
PHP_Fix_Pathinfo_Enable 1.</p>
|
||||||
version 1.11, patch from Robert L Mathews)<p>Adds a MaxRequestsPerProcess parameter that allows mod_fcgid to
|
<p><b>MaxRequestsPerProcess n (-1)</b></p>
|
||||||
exit after handling a certain number of requests, similar to the existing ProcessLifeTime option. <p>This solves a problem with PHP in FastCGI mode. By default, PHP stops
|
<p>(Added in
|
||||||
accepting new FastCGI connections after handling 500 requests; unfortunately, there is a potential race condition during the PHP cleanup code in which
|
version 1.11, patch from Robert L Mathews)</p>
|
||||||
PHP can be shutting down but still have the socket open, so mod_fcgid under heavy load can send request number 501 to PHP and have it "accepted", but then
|
<p>Adds a MaxRequestsPerProcess parameter that allows mod_fcgid
|
||||||
PHP appears to simply exit, causing errors.<p>If you are using PHP, you should
|
to
|
||||||
set it to 500. -1 mean fastcgi process will not exit no matter how many requests
|
exit after handling a certain number of requests, similar to the
|
||||||
|
existing ProcessLifeTime option. </p>
|
||||||
|
<p>This solves a problem with PHP in FastCGI mode. By default,
|
||||||
|
PHP stops
|
||||||
|
accepting new FastCGI connections after handling 500 requests;
|
||||||
|
unfortunately, there is a potential race condition during the PHP
|
||||||
|
cleanup code in which
|
||||||
|
PHP can be shutting down but still have the socket open, so mod_fcgid
|
||||||
|
under heavy load can send request number 501 to PHP and have it
|
||||||
|
"accepted", but then
|
||||||
|
PHP appears to simply exit, causing errors.</p>
|
||||||
|
<p>If you are using PHP, you should
|
||||||
|
set it to 500. -1 mean fastcgi process will not exit no matter how many
|
||||||
|
requests
|
||||||
it has handled.<br>
|
it has handled.<br>
|
||||||
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
</tr>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
</body>
|
||||||
</body></html>
|
</html>
|
||||||
|
@ -11,5 +11,6 @@ LoadModule fcgid_module modules/mod_fcgid.so
|
|||||||
AddHandler fcgid-script fcg fcgi fpl
|
AddHandler fcgid-script fcg fcgi fpl
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Sane place to put sockets
|
# Sane place to put sockets and shared memory file
|
||||||
SocketPath run/mod_fcgid
|
SocketPath run/mod_fcgid
|
||||||
|
SharememPath run/fcgid_shm
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
--- mod_fcgid.1.09/directives.htm 2006-06-18 09:27:53.000000000 +0100
|
|
||||||
+++ mod_fcgid.1.09/directives.htm 2006-06-18 09:29:02.000000000 +0100
|
|
||||||
@@ -27,13 +27,13 @@
|
|
||||||
|
|
||||||
<td nowrap bgcolor="#f8eda6" align="left">
|
|
||||||
|
|
||||||
-<a href="index.htm">Home</a> <br>
|
|
||||||
-<a href="index.cn.htm">Chinese Info</a> <br>
|
|
||||||
-<a href="download.htm">Download (source)</a> <br>
|
|
||||||
-<a href="doc.htm">Documentations</a> <br>
|
|
||||||
+<a href="http://fastcgi.coremail.cn/index.htm">Home</a> <br>
|
|
||||||
+<a href="http://fastcgi.coremail.cn/index.cn.htm">Chinese Info</a> <br>
|
|
||||||
+<a href="http://fastcgi.coremail.cn/download.htm">Download (source)</a> <br>
|
|
||||||
+<a href="http://fastcgi.coremail.cn/doc.htm">Documentations</a> <br>
|
|
||||||
|
|
||||||
|
|
||||||
-<a href="feedback.htm">Feedback</a>
|
|
||||||
+<a href="http://fastcgi.coremail.cn/feedback.htm">Feedback</a>
|
|
||||||
|
|
||||||
|
|
||||||
</td> </tr> </table> </td>
|
|
17
mod_fcgid.2.1-docurls.patch
Normal file
17
mod_fcgid.2.1-docurls.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- mod_fcgid.2.1/directives.htm 2007-02-16 03:40:23.000000000 +0000
|
||||||
|
+++ mod_fcgid.2.1/directives.htm 2007-02-16 10:45:44.000000000 +0000
|
||||||
|
@@ -14,10 +14,10 @@
|
||||||
|
<tr>
|
||||||
|
<td align="left" bgcolor="#f8eda6" nowrap="nowrap"> <a
|
||||||
|
href="index.htm">Home</a> <br>
|
||||||
|
- <a href="index.cn.htm">Chinese Info</a> <br>
|
||||||
|
- <a href="download.htm">Download (source)</a> <br>
|
||||||
|
- <a href="doc.htm">Documentations</a> <br>
|
||||||
|
- <a href="feedback.htm">Feedback</a> <br>
|
||||||
|
+ <a href="http://fastcgi.coremail.cn/index.cn.htm">Chinese Info</a> <br>
|
||||||
|
+ <a href="http://fastcgi.coremail.cn/download.htm">Download (source)</a> <br>
|
||||||
|
+ <a href="http://fastcgi.coremail.cn/doc.htm">Documentations</a> <br>
|
||||||
|
+ <a href="http://fastcgi.coremail.cn/feedback.htm">Feedback</a> <br>
|
||||||
|
<a
|
||||||
|
href="http://sourceforge.net/donate/index.php?group_id=174879"><img
|
||||||
|
src="http://images.sourceforge.net/images/project-support.jpg"
|
@ -10,7 +10,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: mod_fcgid
|
Name: mod_fcgid
|
||||||
Version: 2.0
|
Version: 2.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Apache2 module for high-performance server-side scripting
|
Summary: Apache2 module for high-performance server-side scripting
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -20,11 +20,11 @@ Source0: http://dl.sf.net/mod-fcgid/mod_fcgid.%{version}.tar.gz
|
|||||||
Source1: fcgid.conf
|
Source1: fcgid.conf
|
||||||
Source2: fastcgi.te
|
Source2: fastcgi.te
|
||||||
Source3: fastcgi.fc
|
Source3: fastcgi.fc
|
||||||
Source4: README.Fedora
|
Source4: mod_fcgid-2.1-README.Fedora
|
||||||
Source5: http://fastcgi.coremail.cn/doc.htm
|
Source5: http://fastcgi.coremail.cn/doc.htm
|
||||||
Source6: http://fastcgi.coremail.cn/configuration.htm
|
Source6: http://fastcgi.coremail.cn/configuration.htm
|
||||||
Source7: README.SELinux
|
Source7: mod_fcgid-2.1-README.SELinux
|
||||||
Patch0: mod_fcgid.1.09-docurls.patch
|
Patch0: mod_fcgid.2.1-docurls.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: httpd-devel >= 2.0
|
BuildRequires: httpd-devel >= 2.0
|
||||||
Requires: httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && %{__cat} %{_includedir}/httpd/.mmn || echo missing)
|
Requires: httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && %{__cat} %{_includedir}/httpd/.mmn || echo missing)
|
||||||
@ -38,9 +38,9 @@ as possible.
|
|||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
%define selinux_policyver %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp)
|
%define selinux_policyver %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp)
|
||||||
%package selinux
|
%package selinux
|
||||||
Summary: SELinux policy module supporting FastCGI applications with mod_fcgid
|
Summary: SELinux policy module supporting FastCGI applications with mod_fcgid
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
BuildRequires: %{selinux_buildreqs}
|
BuildRequires: %{selinux_buildreqs}
|
||||||
# selinux-policy is required for directory ownership of %{_datadir}/selinux/*
|
# selinux-policy is required for directory ownership of %{_datadir}/selinux/*
|
||||||
# Modules built against one version of a policy may not work with older policy
|
# Modules built against one version of a policy may not work with older policy
|
||||||
# versions, as noted on fedora-selinux-list:
|
# versions, as noted on fedora-selinux-list:
|
||||||
@ -48,9 +48,9 @@ BuildRequires: %{selinux_buildreqs}
|
|||||||
# Hence the versioned dependency. The versioning will hopefully be replaced by
|
# Hence the versioned dependency. The versioning will hopefully be replaced by
|
||||||
# an ABI version requirement or something similar in the future
|
# an ABI version requirement or something similar in the future
|
||||||
%if "%{selinux_policyver}" != ""
|
%if "%{selinux_policyver}" != ""
|
||||||
Requires: selinux-policy >= %{selinux_policyver}
|
Requires: selinux-policy >= %{selinux_policyver}
|
||||||
%endif
|
%endif
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires(post): /usr/sbin/semodule, /sbin/restorecon
|
Requires(post): /usr/sbin/semodule, /sbin/restorecon
|
||||||
Requires(postun): /usr/sbin/semodule, /sbin/restorecon
|
Requires(postun): /usr/sbin/semodule, /sbin/restorecon
|
||||||
|
|
||||||
@ -60,8 +60,13 @@ SELinux policy module supporting FastCGI applications with mod_fcgid.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mod_fcgid.%{version}
|
%setup -q -n mod_fcgid.%{version}
|
||||||
%{__cp} -p %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE6} %{SOURCE7} .
|
%{__cp} -p %{SOURCE1} fcgid.conf
|
||||||
|
%{__cp} -p %{SOURCE2} fastcgi.te
|
||||||
|
%{__cp} -p %{SOURCE3} fastcgi.fc
|
||||||
|
%{__cp} -p %{SOURCE4} README.Fedora
|
||||||
%{__cp} -p %{SOURCE5} directives.htm
|
%{__cp} -p %{SOURCE5} directives.htm
|
||||||
|
%{__cp} -p %{SOURCE6} configuration.htm
|
||||||
|
%{__cp} -p %{SOURCE7} README.SELinux
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%{__sed} -i -e 's/\r$//' directives.htm configuration.htm
|
%{__sed} -i -e 's/\r$//' directives.htm configuration.htm
|
||||||
|
|
||||||
@ -71,9 +76,9 @@ topdir=$(/usr/bin/dirname $(/usr/sbin/apxs -q exp_installbuilddir))
|
|||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
for selinuxvariant in %{selinux_variants}
|
for selinuxvariant in %{selinux_variants}
|
||||||
do
|
do
|
||||||
%{__make} NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
%{__make} NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
||||||
%{__mv} fastcgi.pp fastcgi.pp.${selinuxvariant}
|
%{__mv} fastcgi.pp fastcgi.pp.${selinuxvariant}
|
||||||
%{__make} NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
%{__make} NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -81,20 +86,20 @@ done
|
|||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
topdir=$(/usr/bin/dirname $(/usr/sbin/apxs -q exp_installbuilddir))
|
topdir=$(/usr/bin/dirname $(/usr/sbin/apxs -q exp_installbuilddir))
|
||||||
%{__make} \
|
%{__make} \
|
||||||
top_dir=${topdir} \
|
top_dir=${topdir} \
|
||||||
DESTDIR=%{buildroot} \
|
DESTDIR=%{buildroot} \
|
||||||
MKINSTALLDIRS="%{__mkdir_p}" \
|
MKINSTALLDIRS="%{__mkdir_p}" \
|
||||||
install
|
install
|
||||||
%{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/fcgid.conf
|
%{__install} -D -m 644 fcgid.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/fcgid.conf
|
||||||
%{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/mod_fcgid
|
%{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/mod_fcgid
|
||||||
|
|
||||||
# Install SELinux policy modules
|
# Install SELinux policy modules
|
||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
for selinuxvariant in %{selinux_variants}
|
for selinuxvariant in %{selinux_variants}
|
||||||
do
|
do
|
||||||
%{__install} -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
%{__install} -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
||||||
%{__install} -p -m 644 fastcgi.pp.${selinuxvariant} \
|
%{__install} -p -m 644 fastcgi.pp.${selinuxvariant} \
|
||||||
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/fastcgi.pp
|
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/fastcgi.pp
|
||||||
done
|
done
|
||||||
# Hardlink identical policy module packages together
|
# Hardlink identical policy module packages together
|
||||||
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
|
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
|
||||||
@ -129,7 +134,7 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog AUTHOR COPYING configuration.htm directives.htm
|
%doc ChangeLog AUTHOR COPYING configuration.htm directives.htm
|
||||||
%doc README.Fedora
|
%doc README.Fedora
|
||||||
%{_libdir}/httpd/modules/mod_fcgid.so
|
%{_libdir}/httpd/modules/mod_fcgid.so
|
||||||
@ -138,12 +143,19 @@ fi
|
|||||||
|
|
||||||
%if %{selinux_module}
|
%if %{selinux_module}
|
||||||
%files selinux
|
%files selinux
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,-)
|
||||||
%doc fastcgi.fc fastcgi.te README.SELinux
|
%doc fastcgi.fc fastcgi.te README.SELinux
|
||||||
%{_datadir}/selinux/*/fastcgi.pp
|
%{_datadir}/selinux/*/fastcgi.pp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 16 2007 Paul Howarth <paul@city-fan.org> 2.1-1
|
||||||
|
- Update to 2.1
|
||||||
|
- Update documentation and patches
|
||||||
|
- Rename some source files to reduce chances of conflicting names
|
||||||
|
- Include SharememPath directive in conf file to avoid unfortunate upstream
|
||||||
|
default location
|
||||||
|
|
||||||
* Mon Oct 30 2006 Paul Howarth <paul@city-fan.org> 2.0-1
|
* Mon Oct 30 2006 Paul Howarth <paul@city-fan.org> 2.0-1
|
||||||
- Update to 2.0
|
- Update to 2.0
|
||||||
- Source is now hosted at sourceforge.net
|
- Source is now hosted at sourceforge.net
|
||||||
|
Loading…
Reference in New Issue
Block a user