From dd0b463620642d7bc8a734409a0e6ebb1d84f294 Mon Sep 17 00:00:00 2001
From: Paul Howarth This is a for regular fastcgi. LoadModule fcgid_module
-modules/mod_fcgid.so
-<Location /fcgid>
-
+ This is a for regular fastcgi. LoadModule fcgid_module modules/mod_fcgid.so <Location /fcgid>
+ This is for suEXEC. Please get more information about suEXEC here. LoadModule fcgid_module
-modules/mod_fcgid.so
-<Location /fcgid>
-<VirtualHost 192.168.1.89>
-
+ This is for suEXEC. Please get more
+information about suEXEC here. LoadModule fcgid_module modules/mod_fcgid.so <Location /fcgid> <VirtualHost 192.168.1.89>
+ This is for fastcgi-mode PHP (UNIX) LoadModule fcgid_module modules/mod_fcgid.so
-<Directory /usr/local/apache2/htdocs/php> This works too: LoadModule fcgid_module
-modules/mod_fcgid.so
-AddHandler fcgid-script .php # Please make sure: This is for fastcgi-mode PHP (UNIX) LoadModule fcgid_module modules/mod_fcgid.so <Directory /usr/local/apache2/htdocs/php> # You need mod_fcgid
+version >= 2.1 to support arguments in FCGIWrapper, if you want allow from all This works too: LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script .php # You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want Options ExecCGI # Please make sure: LoadModule fcgid_module modules/mod_fcgid.so This is for fastcgi-mode Ruby on Rails ( Thank Andre Nathan giving
+me this demo configuration )
-
-# Please make sure: # You need
+mod_fcgid version >= 2.1 to support arguments "xxx/dispatch.fcgi" in
+FCGIWrapper LoadModule fcgid_module modules/mod_fcgid.so # You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want </Directory> # Please make sure: LoadModule fcgid_module modules/mod_fcgid.so
-<Directory "C:/Apache2/htdocs/php/"> This works too: LoadModule fcgid_module modules/mod_fcgid.so
-AddHandler fcgid-script .php LoadModule fcgid_module modules/mod_fcgid.so # You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want This works too:
+ LoadModule fcgid_module modules/mod_fcgid.so # You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want
+Options ExecCGI LoadModule fcgid_module modules/mod_fcgid.so
- <Location /fcgid> Another configuration: FastCgiAuthenticatorAuthoritative
-(default On) Setting the LoadModule fcgid_module modules/mod_fcgid.so
- <Location /fcgid> Another configuration: FastCgiAuthorizerAuthoritative
-(default On) Setting the LoadModule fcgid_module modules/mod_fcgid.so
- <Location /fcgid> Another configuration: FastCgiAccessCheckerAuthoritative
+ <Location /fcgid> Another configuration: FastCgiAuthenticatorAuthoritative
(default On) Setting the Setting the LoadModule fcgid_module modules/mod_fcgid.so
+ <Location /fcgid> Another configuration: FastCgiAuthorizerAuthoritative
+(default On) Setting the LoadModule fcgid_module modules/mod_fcgid.so
+ <Location /fcgid> Another configuration: FastCgiAccessCheckerAuthoritative
+(default On) Setting the
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
-</Location>
+ SetHandler fcgid-script
+ Options ExecCGI
+ allow from all
+</Location>
-
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
-</Location>
- ServerAdmin webmaster@host.foo.com
- DocumentRoot /usr/local/apache2/htdocs/
- ServerName host.foo.com
- SuexecUserGroup pqf pqf
-</VirtualHost>
+ SetHandler fcgid-script
+ Options ExecCGI
+ allow from all
+</Location>
+ ServerAdmin webmaster@host.foo.com
+ DocumentRoot /usr/local/apache2/htdocs/
+ ServerName host.foo.com
+ SuexecUserGroup pqf pqf
+</VirtualHost>
-
- SetHandler fcgid-script
- FCGIWrapper /usr/local/bin/php .php
- Options ExecCGI
- allow from all
-</Directory>
-<Directory /usr/local/apache2/htdocs/php>
- FCGIWrapper /usr/local/bin/php .php
- Options ExecCGI
- allow from all
-</Directory>
-# php is configured with --enable-fastcgi option
-# check error_log(with debug level), if
-any thing goes wrong
+
+ SetHandler fcgid-script
+ FCGIWrapper /usr/local/bin/php .php
+
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+
+</Directory>
+<Directory /usr/local/apache2/htdocs/php>
+ FCGIWrapper /usr/local/bin/php .php
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+ allow from all
+</Directory>
+# php is configured with --enable-fastcgi option
+# check error_log(with debug level), if any thing goes wrong
-
+
+
+LoadModule fcgid_module modules/mod_fcgid.so
+SocketPath /tmp/fcgidsock
+SharememPath /tmp/fcgidshm
+DefaultInitEnv RAILS_ENV production
-<VirtualHost *:80>
- ServerName test2.example.com
- DocumentRoot /usr/local/apache2/htdocs/test2.example.com/
- SuexecUserGroup pqf pqf
-</VirtualHost>
+<Directory /home/sneakymustard/tumble/public>
+ Options ExecCGI FollowSymLinks
+ AllowOverride AuthConfig Indexes Limit
+ Order allow,deny
+ Allow from all
-<Directory /usr/local/apache2/htdocs/test2.example.com/>
- AddHandler fcgid-script .php
- Options ExecCGI
- allow from all
- FCGIWrapper /usr/local/apache2/htdocs/test2.example.com/php .php
-</Directory>
-# php is configured with --enable-fastcgi option
-# copy php execution to /usr/local/apache2/htdocs/test2.example.com/ directory
-# make sure all files in /usr/local/apache2/htdocs/test2.example.com/ with right
-owner and group
-# check error_log(with debug level) and suexec_log, if
-any thing goes wrong
+ AddHandler fcgid-script .fcgi
+ FCGIWrapper "/usr/bin/ruby
+/home/sneakymustard/tumble/public/dispatch.fcgi" .fcgi
-
+ RewriteEngine On
+ RewriteRule ^$ index.html [QSA]
+ RewriteRule ^([^.]+)$ $1.html [QSA]
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
+</Directory>
+
+
+
+
+
+<VirtualHost *:80>
+ ServerName test2.example.com
+ DocumentRoot
+/usr/local/apache2/htdocs/test2.example.com/
+ SuexecUserGroup pqf pqf
+</VirtualHost>
+
+<Directory /usr/local/apache2/htdocs/test2.example.com/>
+ AddHandler fcgid-script .php
+ Options ExecCGI
+ allow from all
+ FCGIWrapper
+/usr/local/apache2/htdocs/test2.example.com/php .php
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+# php is configured with --enable-fastcgi option
+# copy php execution to /usr/local/apache2/htdocs/test2.example.com/
+directory
+# make sure all files in /usr/local/apache2/htdocs/test2.example.com/
+with right owner and group
+# check error_log(with debug level) and suexec_log, if any thing goes
+wrong
+
-This is for fastcgi-mode PHP ( Windows )
- SetHandler fcgid-script
- Options execCGI
- AllowOverride None
- Order allow,deny
- Allow from all
- FCGIWrapper "c:/php/php.exe" .php
-</Directory>
-<Directory "C:/Apache2/htdocs/php/">
- FCGIWrapper "c:/php/php.exe" .php
- Options ExecCGI
- allow from all
+This is for fastcgi-mode PHP ( Windows )
+
+DefaultInitEnv PHPRC "c:/php/"
+DefaultInitEnv PATH
+"c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
+DefaultInitEnv SystemRoot "C:/Windows"
+DefaultInitEnv SystemDrive "C:"
+DefaultInitEnv TEMP "C:/WINDOWS/TEMP"
+DefaultInitEnv TMP "C:/WINDOWS/TEMP"
+DefaultInitEnv windir "C:/WINDOWS"
+<Directory "C:/Apache2/htdocs/php/">
+ SetHandler fcgid-script
+ Options execCGI
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ FCGIWrapper "c:/php/php.exe" .php
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+</Directory>
+DefaultInitEnv PHPRC "c:/php/"
+DefaultInitEnv PATH
+"c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
+DefaultInitEnv SystemRoot "C:/Windows"
+DefaultInitEnv SystemDrive "C:"
+DefaultInitEnv TEMP "C:/WINDOWS/TEMP"
+DefaultInitEnv TMP "C:/WINDOWS/TEMP"
+DefaultInitEnv windir "C:/WINDOWS"
+AddHandler fcgid-script .php
+<Directory "C:/Apache2/htdocs/php/">
+ FCGIWrapper "c:/php/php.exe" .php
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+
+ allow from all
</Directory>
-
-
-
-
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- AuthType Basic
- AuthName ProtectedRealm
- FastCgiAuthenticator /some/path/authenticator
- require valid-user
-</Location>
FastCgiAuthenticatorAuthoritative
directive
-explicitly to Off allows authentication to be passed on to lower level
-modules
-
-
+
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- AuthType Basic
- AuthName ProtectedRealm
- FastCgiAuthorizer /some/place/Authorizer
-</Location>FastCgiAuthorizerAuthoritative
directive explicitly
-to Off allows authorization to be passed on to lower level modules
-
-
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- FastCgiAccessChecker /some/place/access-checker
-</Location>
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+AuthType Basic
+AuthName ProtectedRealm
+FastCgiAuthenticator /some/path/authenticator
+require valid-user
+</Location>
+FastCgiAccessCheckerAuthoritative
directive
-explicitly to Off allows access checking to be passed on to lower level
-modulesFastCgiAuthenticatorAuthoritative
+directive explicitly to Off allows authentication to be
+passed on to lower level modules
+
+
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+AuthType Basic
+AuthName ProtectedRealm
+FastCgiAuthorizer /some/place/Authorizer
+</Location>FastCgiAuthorizerAuthoritative
directive
+explicitly to Off allows authorization to be passed on to
+lower level modules
+
+
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+FastCgiAccessChecker /some/place/access-checker
+</Location>
+FastCgiAccessCheckerAuthoritative
+directive explicitly to Off allows access checking to be
+passed on to lower level modules
- - diff --git a/doc.htm b/doc.htm index 2966dc5..51b1c1a 100644 --- a/doc.htm +++ b/doc.htm @@ -1,113 +1,210 @@ - - + - - -
-
-
-
-
|
-
-
-
-
Configuration for Regular fastcgi -(non-PHP, non-Ruby, non-Python) Configuration -for suEXEC fastcgi Configuration for suPHP (UNIX) Configuration -for PHP (Windows) Configuration -for Authenticator Configuration -for AccessChecker - -
|