2006-09-06 13:08:59 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=gb2312" >
< meta name = "GENERATOR" content = "Microsoft FrontPage 4.0" >
< meta name = "ProgId" content = "FrontPage.Editor.Document" >
< title > The mod_fcgid Home Page< / title >
< / head >
< body >
2006-10-31 18:37:08 +00:00
< p > < b > < a name = "regular fastcgi" > < / a > This is a for regular fastcgi. < / b > < p > LoadModule fcgid_module
2006-09-06 13:08:59 +00:00
modules/mod_fcgid.so< p >
2006-10-31 18:37:08 +00:00
< Location /fcgid>< br >
SetHandler fcgid-script< br >
Options ExecCGI< br >
allow from all< br >
2006-09-06 13:08:59 +00:00
< /Location> < p >
< hr >
2006-10-31 18:37:08 +00:00
< 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
2006-09-06 13:08:59 +00:00
modules/mod_fcgid.so< p >
2006-10-31 18:37:08 +00:00
< Location /fcgid> < br >
SetHandler fcgid-script< br >
Options ExecCGI< br >
allow from all< br >
2006-09-06 13:08:59 +00:00
< /Location> < p >
2006-10-31 18:37:08 +00:00
< VirtualHost 192.168.1.89>< br >
ServerAdmin < a href = "mailto:webmaster@host.foo.com" > webmaster@host.foo.com< br >
< / a > DocumentRoot /usr/local/apache2/htdocs/< br >
ServerName host.foo.com< br >
SuexecUserGroup pqf pqf< br >
2006-09-06 13:08:59 +00:00
< /VirtualHost> < p >
<EFBFBD> <EFBFBD>
< hr >
2006-10-31 18:37:08 +00:00
< p > < b > < a name = "PHP" > < / a > This is for fastcgi-mode PHP (UNIX)< / b > < p > LoadModule fcgid_module modules/mod_fcgid.so< p >
< Directory /usr/local/apache2/htdocs/php>< br >
SetHandler fcgid-script< br >
FCGIWrapper /usr/local/bin/php .php< br >
Options ExecCGI< br >
allow from all< br >
< /Directory>< p > < b > This works too:< / b > < p > LoadModule fcgid_module
2006-09-06 13:08:59 +00:00
modules/mod_fcgid.so < p >
2006-10-31 18:37:08 +00:00
AddHandler fcgid-script .php< br >
< Directory /usr/local/apache2/htdocs/php> < br >
FCGIWrapper /usr/local/bin/php .php< br >
Options ExecCGI< br >
allow from all< br >
2006-09-06 13:08:59 +00:00
< /Directory> < 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 >
< hr >
2006-10-31 18:37:08 +00:00
< p > < b > < a name = "suPHP" > < / a > This is for suPHP ( UNIX )< / b >
< p > LoadModule fcgid_module modules/mod_fcgid.so< br >
2006-09-06 13:08:59 +00:00
< br >
2006-10-31 18:37:08 +00:00
< VirtualHost *:80>< br >
ServerName test2.example.com< br >
DocumentRoot /usr/local/apache2/htdocs/test2.example.com/< br >
SuexecUserGroup pqf pqf< br >
2006-09-06 13:08:59 +00:00
< /VirtualHost>< br >
< br >
2006-10-31 18:37:08 +00:00
< 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< br >
2006-09-06 13:08:59 +00:00
< /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 >
< hr >
< p > < br >
2006-10-31 18:37:08 +00:00
< b > < a name = "PHP-Windows" > < / a > This is for fastcgi-mode PHP ( Windows )< / b > < p > LoadModule fcgid_module modules/mod_fcgid.so< p >
< Directory " C:/Apache2/htdocs/php/" > < br >
SetHandler fcgid-script< br >
Options execCGI< br >
AllowOverride None< br >
Order allow,deny< br >
Allow from all< br >
FCGIWrapper " c:/php/php.exe" .php< br >
< /Directory>< p > < b > This works too:< / b > < p > LoadModule fcgid_module modules/mod_fcgid.so < p >
AddHandler fcgid-script .php< br >
< Directory " C:/Apache2/htdocs/php/" > < br >
FCGIWrapper " c:/php/php.exe" .php< br >
Options ExecCGI< br >
allow from all< br >
2006-09-06 13:08:59 +00:00
< /Directory> < br >
< hr >
2006-10-31 18:37:08 +00:00
< 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 > < 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 >
< p > < b > < a name = "Authorizer" > < / a > This is for Authorizer< / 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 >
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 > < 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 > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
2006-09-06 13:08:59 +00:00
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< p > <EFBFBD> <EFBFBD> < / p >
< / body >
< / html >