close
Warning:
Error with navigation contributor "AccountModule"
- Timestamp:
-
May 31, 2020, 9:49:13 PM (5 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v3
|
v4
|
|
142 | 142 | using `bin-environment` (as in the section above on Apache configuration). |
143 | 143 | |
144 | | Note that lighttpd has a bug related to 'SCRIPT_NAME' and 'PATH_INFO' when the uri of fastcgi.server is '/' instead of '/trac' in this example (see [trac:#2418]). This should be fixed since lighttpd 1.4.23, and you may need to add `"fix-root-scriptname" => "enable"` as parameter of fastcgi.server. |
| 144 | Note that lighttpd has a bug related to 'SCRIPT_NAME' and 'PATH_INFO' when the uri of fastcgi.server is '/' instead of '/trac' in this example (see [trac:#2418]). This is fixed in lighttpd 1.5, and under lighttpd 1.4.23 or later the workaround is to add `"fix-root-scriptname" => "enable"` as a parameter of fastcgi.server. |
145 | 145 | |
146 | 146 | For using two projects with lighttpd add the following to your `lighttpd.conf`: |
… |
… |
|
371 | 371 | |
372 | 372 | 1. Nginx configuration with basic authentication handled by Nginx - confirmed to work on 0.6.32 |
373 | | {{{ |
| 373 | {{{ |
374 | 374 | server { |
375 | 375 | listen 10.9.8.7:443; |
… |
… |
|
415 | 415 | # (Or ``fastcgi_param SCRIPT_NAME /some/prefix``.) |
416 | 416 | fastcgi_param SCRIPT_NAME ""; |
417 | | fastcgi_param PATH_INFO $path_info; |
| 417 | fastcgi_param PATH_INFO $fastcgi_script_name; |
418 | 418 | |
419 | 419 | ## WSGI NEEDED VARIABLES - trac warns about them |
… |
… |
|
438 | 438 | } |
439 | 439 | }}} |
440 | | |
441 | | 2. Modified trac.fcgi: |
442 | | |
443 | | {{{ |
| 440 | 1. Modified trac.fcgi: |
| 441 | {{{ |
444 | 442 | #!/usr/bin/env python |
445 | 443 | import os |
… |
… |
|
472 | 470 | |
473 | 471 | }}} |
474 | | |
475 | | 3. reload nginx and launch trac.fcgi like that: |
476 | | |
477 | | {{{ |
| 472 | 1. reload nginx and launch trac.fcgi like that: |
| 473 | {{{#!sh |
478 | 474 | trac@trac.example ~ $ ./trac-standalone-fcgi.py |
479 | 475 | }}} |