Edgewall Software

Changes between Version 22 and Version 23 of TracCgi


Ignore:
Timestamp:
May 9, 2007, 10:09:42 PM (17 years ago)
Author:
Niklas Bivald
Comment:

Added option for setting TRAC_ENV / TRAC_ENV_PARENT_DIR in trac.cgi instead of apache config if mod_env isn't compiled and enabled

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v22 v23  
    3333}}}
    3434
    35  ''Note that the `SetEnv` directive requires the `mod_env` module to be installed and enable.''
     35 ''Note that the `SetEnv` directive requires the `mod_env` module to be installed and enable. If not, you could set TRAC_ENV in trac.cgi. Just add the following code between "try:" and "from trac.web ...":''
     36
     37{{{
     38    import os
     39    os.environ['TRAC_ENV'] = "/path/to/projectenv"
     40}}}
     41
     42 '' Or for TRAC_ENV_PARENT_DIR: ''
     43
     44{{{
     45    import os
     46    os.environ['TRAC_ENV_PARENT_DIR'] = "/path/to/project/parent/dir"
     47}}}
    3648
    3749This will make Trac available at `http://yourhost.example.org/trac`.