FastCgi Timeout
<IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcg .fcgi .fpl AddHandler php-script .php FastCgiConfig -maxClassProcesses 5 -maxProcesses 1000 -restart -killInterval 10 FastCgiServer /usr/std-cgi/php-fcgi -processes 1 #FastCgiExternalServer /usr/std-cgi/php-fcgi -host localhost:8002 <Location /std-cgi/php-fcgi> SetHandler fastcgi-script </Location> Action php-script /std-cgi/php-fcgi </IfModule>
http://wiki.koumbit.net/HelpOnConfiguration/ApacheVoodoo?highlight=%28apache%29 http://wiki.koumbit.net/HelpOnConfiguration/IntegratingWithApache?highlight=%28apache%29 http://wiki.koumbit.net/WikiTransitionRewriteRules?highlight=%28rewrite%29 http://moinmoin.wikiwikiweb.de/OliverGraf/FastCgiModPyDocs?highlight=%28RewriteRule%29
moinmin links
http://moinmoin.wikiwikiweb.de/HelpOnInstalling/FastCgi?highlight=%28fastcgi%29 http://moinmoin.wikiwikiweb.de/OliverGraf/FastCgiModPyDocs?highlight=%28fastcgi%29
<VirtualHost *:80>
ServerName wiki.koumbit.net
Alias /_static/ "/usr/local/share/moin/htdocs/"
<Directory "/usr/local/share/moin/htdocs/>
Order deny,allow
Allow from all
</Directory>
RewriteEngine On
RewriteLogLevel 0
## static files are somewhere else? ok...
RewriteRule ^/_static(.*)$ /usr/local/share/moin/htdocs/$1 [last]
## map everything else to moin.cgi/moin.fcg
<IfModule !mod_fastcgi.c>
RewriteRule ^(.*)$ /usr/local/www/wiki/koumbitwiki/moin.cgi$1 [type=application/x-httpd-cgi]
</IfModule>
<IfModule mod_fastcgi.c>
RewriteRule ^(.*)$ /usr/local/www/wiki/koumbitwiki/moin.fcg$1 [type=application/x-httpd-fcgi]
</IfModule>
<Directory "/usr/local/www/wiki/koumbitwiki">
allow from all
AllowOverride None
Options ExecCGI FollowSymLinks
order allow,deny
SetHandler fastcgi-script
</Directory>
</VirtualHost>
./mods-enabled/fastcgi.conf:<IfModule mod_fastcgi.c> ./mods-enabled/fastcgi.conf: AddHandler fastcgi-script .fcgi ./mods-enabled/fastcgi.conf: #FastCgiWrapper /usr/lib/apache2/suexec2 ./mods-enabled/fastcgi.conf: FastCgiIpcDir /var/lib/apache2/fastcgi ./mods-enabled/fastcgi.load:LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so ./mods-available/fastcgi.load:LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so ./mods-available/fastcgi.conf:<IfModule mod_fastcgi.c> ./mods-available/fastcgi.conf: AddHandler fastcgi-script .fcgi ./mods-available/fastcgi.conf: #FastCgiWrapper /usr/lib/apache2/suexec2 ./mods-available/fastcgi.conf: FastCgiIpcDir /var/lib/apache2/fastcgi ./conf.d/fastcgi.conf:#<IfModule mod_fastcgi.c> ./conf.d/fastcgi.conf:# AddHandler fastcgi-script .fcgi ./conf.d/fastcgi.conf:# FastCgiWrapper /usr/lib/apache/suexec ./conf.d/fastcgi.conf:# FastCgiIpcDir /var/lib/apache/fastcgi
http://moinmoin.wikiwikiweb.de/OliverGraf/FastCgiModPyDocs?highlight=%28FastCGI%29
# Spyce is about embedding Python in HTML to create powerful dynamic web pages with a minimal learning curve. # Spyce Active Handlers let you define a function to be called when a form is submitted; Spyce will then inspect the arguments your function desires and pull them out the GET or POST information for you. Active Handlers also give a painless way to separate data and presentation, since the handlers may be defined in any .py file. # Spyce Active Tags allow you to use active handlers to create reusable components a la ASP.NET or Tapestry, but without imposing the leaky abstraction of pretending your web app is a full-blown event-driven fat client. # Spyce is modular and extensible. The standard modules include: request, response, redirect, error, debug, include, cookie, session, template, transform, compress, and others. Writing your own is easy. # Spyce scripts are first-order members of the Spyce language, a useful feature not present in other server page languages. This allows Spyce scripts to be turned into functions, useful for templating, internationalization, polymorphic component rendering, etc. # Spyce performs well. It can easily serve hundreds of requests per second, and is comparable with JSP, PHP and other languages in its class. # Spyce works with Python 2.2 and later.
Wiki/Apache2/FastCgi (last modified 2008-11-04 06:59:55)