Changes between Version 1 and Version 2 of TracFastCgi


Ignore:
Timestamp:
07/30/08 10:20:58 (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v1 v2  
    22 
    33Since version 0.9, Trac supports being run through the [http://www.fastcgi.com/ FastCGI] interface. Like [wiki:TracModPython mod_python], this allows Trac to remain resident, and is faster than external CGI interfaces which must start a new process for each request. 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 web servers. 
     4 
     5{{{ 
     6#!html 
     7<p style="background: #fdc; border: 2px solid #d00; font-style: italic; padding: 0 .5em; margin: 1em 0;"> 
     8<strong>Note for Windows:</strong> Trac's FCGI does not run under Windows, as Windows does not implement Socket.fromfd, which is used by _fcgi.py 
     9</p> 
     10}}} 
    411 
    512== Simple Apache configuration == 
     
    714There are two FastCGI modules commonly available for Apache: `mod_fastcgi` and 
    815`mod_fcgid`.  The `FastCgiIpcDir` and `FastCgiConfig` directives discussed 
    9 below are `mod_fastcgi` directives; the `DefaultInitEnv` is a `mod_fgcid` 
     16below are `mod_fastcgi` directives; the `DefaultInitEnv` is a `mod_fcgid` 
    1017directive. 
    1118 
     
    6168`.fcgi` scripts with different `ScriptAliases`, copying and appropriately 
    6269renaming `trac.fcgi` and adding the above code to create each such script. 
     70 
     71See [https://coderanger.net/~coderanger/httpd/fcgi_example.conf this fcgid example config] which uses a !ScriptAlias directive with trac.fcgi with a trailing / like this: 
     72{{{ 
     73ScriptAlias / /srv/tracsite/cgi-bin/trac.fcgi/ 
     74}}} 
     75 
     76== Simple Cherokee Configuration == 
     77 
     78Configuration wanted. 
    6379 
    6480== Simple Lighttpd Configuration == 
     
    293309URI: /trac/                              <--- URI path to bind to python fcgi app we created     
    294310Fast CGI App: [VHost Level] MyTractFCGI  <--- select the trac fcgi extapp we just created 
    295 Realm: TracUserDB                        <--- only if (4) is set. select ream created in (4) 
     311Realm: TracUserDB                        <--- only if (4) is set. select realm created in (4) 
    296312}}} 
    297313