Changes between Version 15 and Version 16 of TracCgi
- Timestamp:
- May 5, 2006, 6:29:31 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracCgi
v15 v16 27 27 }}} 28 28 29 This will make Trac available at `http://yourhost.example.org/trac`.30 31 29 ''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.'' 32 30 33 31 ''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see ApacheSuexec.'' 32 33 Alternately, these variables can be set in `trac.cgi` and thus not require 34 Apache `SetEnv` settings at all, e.g.: 35 {{{ 36 import os 37 os.environ['TRAC_ENV'] = "/path/to/projectenv" 38 }}} 39 or 40 {{{ 41 import os 42 os.environ['TRAC_ENV_PARENT_DIR'] = "/path/to/project/parent/dir" 43 }}} 44 Using this method, different projects can be supported by using different 45 `.cgi` scripts with different `ScriptAliases`, copying and appropriately 46 renaming `trac.cgi` and adding the above code to create each such script. 47 48 This will make Trac available at `http://yourhost.example.org/trac`. 34 49 35 50 == Mapping Static Resources ==