close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
- Timestamp:
-
2021-07-11T14:17:48-07:00 (3 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
27 | 27 | <IfModule mod_fastcgi.c> |
28 | 28 | AddHandler fastcgi-script .fcgi |
29 | | FastCgiIpcDir /var/lib/apache2/fastcgi |
| 29 | FastCgiIpcDir /var/lib/apache2/fastcgi |
30 | 30 | </IfModule> |
31 | 31 | LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so |
… |
… |
|
48 | 48 | You can also specify the `PYTHON_EGG_CACHE` environment variable using a second `-initial-env` directive: |
49 | 49 | {{{#!apache |
50 | | FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac \ |
| 50 | FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac \ |
51 | 51 | -initial-env PYTHON_EGG_CACHE=/var/lib/trac/plugin-cache |
52 | 52 | }}} |
… |
… |
|
122 | 122 | var.fcgi_binary="/path/to/cgi-bin/trac.fcgi" # 0.10 name of prior fcgi executable |
123 | 123 | fastcgi.server = ("/trac" => |
124 | | |
| 124 | |
125 | 125 | ("trac" => |
126 | 126 | ("socket" => "/tmp/trac-fastcgi.sock", |
… |
… |
|
417 | 417 | import trac.web._fcgi |
418 | 418 | |
419 | | fcgiserv = trac.web._fcgi.WSGIServer(dispatch_request, |
| 419 | fcgiserv = trac.web._fcgi.WSGIServer(dispatch_request, |
420 | 420 | bindAddress = sockaddr, umask = 7) |
421 | 421 | fcgiserv.run() |
… |
… |
|
438 | 438 | |
439 | 439 | }}} |
440 | | 1. Reload nginx and launch trac.fcgi: |
| 440 | 1. Reload nginx and launch trac.fcgi: |
441 | 441 | {{{#!sh |
442 | | trac@trac.example ~ $ ./trac-standalone-fcgi.py |
| 442 | trac@trac.example ~ $ ./trac-standalone-fcgi.py |
443 | 443 | }}} |
444 | 444 | |
… |
… |
|
451 | 451 | * and patch from [trac:#7239] is applied, or you'll have to fix the socket file permissions every time |
452 | 452 | |
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. |
| 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. |
457 | 457 | |
458 | 458 | Another way to run Trac as a FCGI external application is offered in [trac:#6224]. |