Changes between Version 1 and Version 2 of TracFastCgi
- Timestamp:
- Mar 16, 2009, 12:18:07 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracFastCgi
v1 v2 2 2 3 3 Since 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 }}} 4 11 5 12 == Simple Apache configuration == … … 7 14 There are two FastCGI modules commonly available for Apache: `mod_fastcgi` and 8 15 `mod_fcgid`. The `FastCgiIpcDir` and `FastCgiConfig` directives discussed 9 below are `mod_fastcgi` directives; the `DefaultInitEnv` is a `mod_f gcid`16 below are `mod_fastcgi` directives; the `DefaultInitEnv` is a `mod_fcgid` 10 17 directive. 11 18 … … 61 68 `.fcgi` scripts with different `ScriptAliases`, copying and appropriately 62 69 renaming `trac.fcgi` and adding the above code to create each such script. 70 71 See [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 {{{ 73 ScriptAlias / /srv/tracsite/cgi-bin/trac.fcgi/ 74 }}} 75 76 == Simple Cherokee Configuration == 77 78 Configuration wanted. 63 79 64 80 == Simple Lighttpd Configuration == … … 293 309 URI: /trac/ <--- URI path to bind to python fcgi app we created 294 310 Fast CGI App: [VHost Level] MyTractFCGI <--- select the trac fcgi extapp we just created 295 Realm: TracUserDB <--- only if (4) is set. select rea m created in (4)311 Realm: TracUserDB <--- only if (4) is set. select realm created in (4) 296 312 }}} 297 313