Edgewall Software

Changes between Version 15 and Version 16 of TracCgi


Ignore:
Timestamp:
May 5, 2006, 6:29:31 AM (18 years ago)
Author:
jaboydjr@…
Comment:

Added comment that TRAC_ENV… can be set in trac.cgi

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v15 v16  
    2727}}}
    2828
    29 This will make Trac available at `http://yourhost.example.org/trac`.
    30 
    3129 ''Note: Make sure that the modules mod_alias and mod_env modules are available and enabled in your Apache configuration, otherwise Apache will complain about the above snippet.''
    3230
    3331 ''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see ApacheSuexec.''
     32
     33Alternately, these variables can be set in `trac.cgi` and thus not require
     34Apache `SetEnv` settings at all, e.g.:
     35{{{
     36import os
     37os.environ['TRAC_ENV'] = "/path/to/projectenv"
     38}}}
     39or
     40{{{
     41import os
     42os.environ['TRAC_ENV_PARENT_DIR'] = "/path/to/project/parent/dir"
     43}}}
     44Using this method, different projects can be supported by using different
     45`.cgi` scripts with different `ScriptAliases`, copying and appropriately
     46renaming `trac.cgi` and adding the above code to create each such script.
     47
     48This will make Trac available at `http://yourhost.example.org/trac`.
    3449
    3550== Mapping Static Resources ==