Changes between Version 16 and Version 17 of TracFastCgi


Ignore:
Timestamp:
19/04/2022 13:22:07 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v16 v17  
    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",
     
    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].