Edgewall Software

Changes between Version 33 and Version 34 of TracModPython


Ignore:
Timestamp:
Aug 11, 2005, 4:02:14 PM (19 years ago)
Author:
anonymous
Comment:

Added method to have custom homepage with multiple projects + mod_python configuration

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v33 v34  
    111111When you request the {{{/projects}}} URL, you will get a (currently very simple) listing of all subdirectories of the directory you set as {{{TracEnvParentDir}}}. Selecting any project in the list will bring you to the corresponding Trac instance. You should make sure that the configured directory only contains Trac environment directories that match the currently installed Trac version, because that is not checked prior the the generation of the project list.
    112112
     113If you don't want to have the subdirectory listing as your projects home page you can use a
     114
     115{{{
     116<LocationMatch "/.+/">
     117}}}
     118
     119This will instruct Apache to use mod_python for all locations different from root while having the possibility of placing a custom home page for root in yuor DocumentRoot folder.
     120
     121
    113122=== Use different locations for htdocs and mod_python ===
    114123The mod_python location must be different than the trac htdocs location. For example, if you map Trac's htdocs location to {{{/trac}}} and then map your mod_python handler to {{{/trac}}} as well, you will encounter strange problems.  Configuration for the location of the htdocs is in the environment's ini file.