diff --git a/.cvsignore b/.cvsignore
index 772f798..c771bb1 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-mod_fcgid.2.0.tar.gz
+mod_fcgid.2.1.tar.gz
diff --git a/README.Fedora b/README.Fedora
deleted file mode 100644
index a5f9dc4..0000000
--- a/README.Fedora
+++ /dev/null
@@ -1,67 +0,0 @@
-Using mod_fcgid in Fedora
-=========================
-
-This mod_fcgid package includes a configuration file
-/etc/httpd/conf.d/fcgid.conf that ensures that the module is loaded and
-added as the handler for .fcg, .fcgi, and .fpl applications (provided
-mod_fastcgi in not already loaded, in which case you will need to decide which
-module should handle which types of application).
-
-So far the module package has only been tested in conjunction with the "moin"
-wiki application. Further feedback regarding other applications is welcome.
-
-Setting up moin with mod_fcgid
-==============================
-
-Setting up moin with mod_fcgid is very similar to setting it up as a regular
-CGI application.
-
- * Create a directory for your wiki instance:
-
- DESTDIR=/var/www/mywiki
- mkdir -p $DESTDIR/cgi-bin
-
- * Copy in the wiki template data and the application itself:
-
- cp -a /usr/share/moin/{data,underlay} $DESTDIR
- cp -a /usr/share/moin/server/moin.fcg $DESTDIR/cgi-bin
- cp -a /usr/share/moin/config/wikiconfig.py $DESTDIR/cgi-bin
-
- * Fix the directory ownership
-
- chown -R apache:apache $DESTDIR/{data,underlay}
-
- * Edit $DESTDIR/cgi-bin/wikiconfig.py to suit your needs
-
- * Create a httpd configuration file for the wiki, e.g.
- /etc/httpd/conf.d/mywiki.conf
-
- # Wiki application data common to all wiki instances
- Alias /wiki/ "/usr/share/moin/htdocs/"
-
This is a for regular fastcgi.
LoadModule fcgid_module -modules/mod_fcgid.so
-<Location /fcgid>
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
-</Location>
- +
This is a for regular fastcgi.
+LoadModule fcgid_module modules/mod_fcgid.so
+<Location /fcgid>
+ SetHandler fcgid-script
+ Options ExecCGI
+ allow from all
+</Location>
+
This is for suEXEC. Please get more information about suEXEC here.
LoadModule fcgid_module -modules/mod_fcgid.so
-<Location /fcgid>
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
-</Location>
-<VirtualHost 192.168.1.89>
- ServerAdmin webmaster@host.foo.com
- DocumentRoot /usr/local/apache2/htdocs/
- ServerName host.foo.com
- SuexecUserGroup pqf pqf
-</VirtualHost>
-�� +
This is for suEXEC. Please get more +information about suEXEC here.
+LoadModule fcgid_module modules/mod_fcgid.so
+<Location /fcgid>
+ SetHandler fcgid-script
+ Options ExecCGI
+ allow from all
+</Location>
<VirtualHost 192.168.1.89>
+ ServerAdmin webmaster@host.foo.com
+ DocumentRoot /usr/local/apache2/htdocs/
+ ServerName host.foo.com
+ SuexecUserGroup pqf pqf
+</VirtualHost>
�� +
This is for fastcgi-mode PHP (UNIX)
LoadModule fcgid_module modules/mod_fcgid.so
-<Directory /usr/local/apache2/htdocs/php>
- SetHandler fcgid-script
- FCGIWrapper /usr/local/bin/php .php
- Options ExecCGI
- allow from all
-</Directory>
This works too:
LoadModule fcgid_module -modules/mod_fcgid.so
-AddHandler fcgid-script .php
-<Directory /usr/local/apache2/htdocs/php>
- FCGIWrapper /usr/local/bin/php .php
- Options ExecCGI
- allow from all
-</Directory>
# Please make sure:
-# php is configured with --enable-fastcgi option
-# check error_log(with debug level), if
-any thing goes wrong
+
This is for fastcgi-mode PHP (UNIX)
+LoadModule fcgid_module modules/mod_fcgid.so
+ <Directory /usr/local/apache2/htdocs/php>
+ SetHandler fcgid-script
+ FCGIWrapper /usr/local/bin/php .php
+
# You need mod_fcgid
+version >= 2.1 to support arguments in FCGIWrapper, if you want
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
allow from all
+</Directory>
This works too:
+LoadModule fcgid_module modules/mod_fcgid.so
+AddHandler fcgid-script .php
+<Directory /usr/local/apache2/htdocs/php>
+ FCGIWrapper /usr/local/bin/php .php
# You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
Options ExecCGI
+ allow from all
+</Directory>
# Please make sure:
+# 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
+
This is for fastcgi-mode Ruby on Rails ( Thank Andre Nathan giving
+me this demo configuration )
+
+LoadModule fcgid_module modules/mod_fcgid.so
+SocketPath /tmp/fcgidsock
+SharememPath /tmp/fcgidshm
+DefaultInitEnv RAILS_ENV production
+
+<Directory /home/sneakymustard/tumble/public>
+ Options ExecCGI FollowSymLinks
+ AllowOverride AuthConfig Indexes Limit
+ Order allow,deny
+ Allow from all
-<VirtualHost *:80>
- ServerName test2.example.com
- DocumentRoot /usr/local/apache2/htdocs/test2.example.com/
- SuexecUserGroup pqf pqf
-</VirtualHost>
+ AddHandler fcgid-script .fcgi
# You need
+mod_fcgid version >= 2.1 to support arguments "xxx/dispatch.fcgi" in
+FCGIWrapper
+ 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>
+
+
+
LoadModule fcgid_module modules/mod_fcgid.so
-<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>
-
-# Please make sure:
-# 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
+<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
# You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
</Directory>
+ # Please make sure:
+# 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 )
LoadModule fcgid_module modules/mod_fcgid.so
-<Directory "C:/Apache2/htdocs/php/">
- SetHandler fcgid-script
- Options execCGI
- AllowOverride None
- Order allow,deny
- Allow from all
- FCGIWrapper "c:/php/php.exe" .php
-</Directory>
This works too:
LoadModule fcgid_module modules/mod_fcgid.so
-AddHandler fcgid-script .php
-<Directory "C:/Apache2/htdocs/php/">
- FCGIWrapper "c:/php/php.exe" .php
- Options ExecCGI
- allow from all
+This is for fastcgi-mode PHP ( Windows )
+
LoadModule fcgid_module modules/mod_fcgid.so
+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
# You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+</Directory>
This works too: +
+LoadModule fcgid_module modules/mod_fcgid.so
+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
# You need mod_fcgid version >= 2.1 to
+support arguments in FCGIWrapper, if you want
+ # FCGIWrapper "/usr/local/bin/php -c /etc/" .php
+
+Options ExecCGI
+ allow from all
</Directory>
-
+
LoadModule fcgid_module modules/mod_fcgid.so -
<Location /fcgid>
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- AuthType Basic
- AuthName ProtectedRealm
- FastCgiAuthenticator /some/path/authenticator
- require valid-user
-</Location>
Another configuration: FastCgiAuthenticatorAuthoritative +
<Location /fcgid>
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+AuthType Basic
+AuthName ProtectedRealm
+FastCgiAuthenticator /some/path/authenticator
+require valid-user
+</Location>
+
Another configuration: FastCgiAuthenticatorAuthoritative (default On)
-Setting the FastCgiAuthenticatorAuthoritative
directive
-explicitly to Off allows authentication to be passed on to lower level
-modules
Setting the FastCgiAuthenticatorAuthoritative
+directive explicitly to Off allows authentication to be
+passed on to lower level modules
LoadModule fcgid_module modules/mod_fcgid.so -
<Location /fcgid>
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- AuthType Basic
- AuthName ProtectedRealm
- FastCgiAuthorizer /some/place/Authorizer
-</Location>
Another configuration: FastCgiAuthorizerAuthoritative +
+<Location /fcgid>
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+AuthType Basic
+AuthName ProtectedRealm
+FastCgiAuthorizer /some/place/Authorizer
+</Location>
Another configuration: FastCgiAuthorizerAuthoritative (default On)
- -Setting the FastCgiAuthorizerAuthoritative
directive explicitly
-to Off allows authorization to be passed on to lower level modules
Setting the FastCgiAuthorizerAuthoritative
directive
+explicitly to Off allows authorization to be passed on to
+lower level modules
LoadModule fcgid_module modules/mod_fcgid.so -
<Location /fcgid>
- SetHandler fcgid-script
- Options ExecCGI
- allow from all
- FastCgiAccessChecker /some/place/access-checker
-</Location>
Another configuration: FastCgiAccessCheckerAuthoritative +
<Location /fcgid>
+SetHandler fcgid-script
+Options ExecCGI
+allow from all
+FastCgiAccessChecker /some/place/access-checker
+</Location>
+
Another configuration: FastCgiAccessCheckerAuthoritative (default On)
-Setting the FastCgiAccessCheckerAuthoritative
directive
-explicitly to Off allows access checking to be passed on to lower level
-modules
Setting the FastCgiAccessCheckerAuthoritative
+directive explicitly to Off allows access checking to be
+passed on to lower level modules
��
��
-��
��
��
@@ -171,7 +253,5 @@ 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 - -
|