Edgewall Software

Changes between Version 1 and Version 2 of TracFastCgi


Ignore:
Timestamp:
Mar 17, 2005, 6:43:41 AM (19 years ago)
Author:
Mark Rowe <edgewall.com@…>
Comment:

Info about lighttpd configuration. Patch applies to trunk only. Spelling.

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v1 v2  
    11= Trac and FastCGI =
    22
    3 There is a patch to Trac 0.8.1 available adding support for the [http://www.fastcgi.com/ FastCGI] interface. Like TracModPython, this allows trac to remain resident, and is faster than external CGI interfaces which must start a new process for each page view. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionaly, it is supported by much wider variety of webservers.
     3There is a patch against r1342 of Trac trunk available adding support for the [http://www.fastcgi.com/ FastCGI] interface. Like TracModPython, this allows trac to remain resident, and is faster than external CGI interfaces which must start a new process for each page view. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionally, it is supported by much wider variety of webservers.
    44
    55== The patch ==
     
    88 * [http://article.gmane.org/gmane.comp.version-control.subversion.trac.general/2294 Mailing List thread]
    99
    10 == Simple configuration ==
     10== Simple Apache configuration ==
    1111{{{
    1212# Enable fastcgi for .fcgi files
     
    2525Or '''NOT VERIFIED''' you should be able to do it per-directory as described in TracInstall for normal CGIs.
    2626
    27 Configure ScriptAlias or similr options as described in TracInstall, but calling cgi-bin/trac.fcgi instead of cgi-bin/trac.cgi
     27Configure ScriptAlias or similar options as described in TracInstall, but calling cgi-bin/trac.fcgi instead of cgi-bin/trac.cgi
     28
     29== Simple Lighttpd Configuration ==
     30{{{
     31lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance
     32environments.  It has a very low memory footprint compared to other webservers and takes care of cpu-load.
     33}}}
     34
     35The FastCGI front-end was developed primarily for use with alternative webservers, such as [http://www.lighttpd.net/ lighttpd].  To use TracFastCgi with lighttpd, add the following to your lighttpd.conf:
     36{{{
     37fastcgi.server = ("trac.fcgi" => ( "trac.fcgi" => ( "socket" => "/tmp/trac-fastcgi.socket",
     38                                                    "bin-path" => "/path/to/cgi-bin/trac.fcgi",
     39                                                    "bin-environment" => ("TRAC_ENV" => "/path/to/env/trac")
     40                                                  )
     41                                 )
     42                 )
     43alias.url = ( "/cgi-bin/" => "/path/to/cgi-bin/", "/trac/" => "/usr/share/trac/htdocs/")
     44url.rewrite-final = ("^/trac(.*)" => "/cgi-bin/trac.fcgi$1", "^/trac/?$" => "/trac/timeline/")
     45}}}
     46
     47Note that you will need to add a new entry to ''fastcgi.server'' for each separate Trac instance that you wish to run.
     48
     49Relaunch lighttpd, and browse to http://''server''/trac/ to access Trac.
    2850
    2951----