Changes between Version 9 and Version 10 of TracFastCgi


Ignore:
Timestamp:
10/05/2023 07:15:51 AM (14 months ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v9 v10  
    2727<IfModule mod_fastcgi.c>
    2828   AddHandler fastcgi-script .fcgi
    29    FastCgiIpcDir /var/lib/apache2/fastcgi 
     29   FastCgiIpcDir /var/lib/apache2/fastcgi
    3030</IfModule>
    3131LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
     
    4848You can also specify the `PYTHON_EGG_CACHE` environment variable using a second `-initial-env` directive:
    4949{{{#!apache
    50 FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac \ 
     50FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac \
    5151    -initial-env PYTHON_EGG_CACHE=/var/lib/trac/plugin-cache
    5252}}}
     
    122122var.fcgi_binary="/path/to/cgi-bin/trac.fcgi" # 0.10 name of prior fcgi executable
    123123fastcgi.server = ("/trac" =>
    124    
     124
    125125                   ("trac" =>
    126126                     ("socket" => "/tmp/trac-fastcgi.sock",
     
    332332 1. Modify `/fullpathto/mytracproject/conf/trac.ini`:
    333333 {{{
    334 #find/set base_rul, url, and link variables
     334#find/set base_url, url, and link variables
    335335base_url = http://yourdomain.com/trac/ <--- base url to generate correct links to
    336336url = http://yourdomain.com/trac/      <--- link of project
     
    417417     import trac.web._fcgi
    418418
    419      fcgiserv = trac.web._fcgi.WSGIServer(dispatch_request, 
     419     fcgiserv = trac.web._fcgi.WSGIServer(dispatch_request,
    420420          bindAddress = sockaddr, umask = 7)
    421421     fcgiserv.run()
     
    438438
    439439}}}
    440  1. Reload nginx and launch trac.fcgi: 
     440 1. Reload nginx and launch trac.fcgi:
    441441 {{{#!sh
    442 trac@trac.example ~ $ ./trac-standalone-fcgi.py 
     442trac@trac.example ~ $ ./trac-standalone-fcgi.py
    443443}}}
    444444
     
    451451  * and patch from [trac:#7239] is applied, or you'll have to fix the socket file permissions every time
    452452
    453 Unfortunately Nginx does not support variable expansion in fastcgi_pass directive. 
    454 Thus it is not possible to serve multiple Trac instances from one server block. 
    455 
    456 If you worry enough about security, run Trac instances under separate users. 
     453Unfortunately Nginx does not support variable expansion in fastcgi_pass directive.
     454Thus it is not possible to serve multiple Trac instances from one server block.
     455
     456If you worry enough about security, run Trac instances under separate users.
    457457
    458458Another way to run Trac as a FCGI external application is offered in [trac:#6224].