Edgewall Software

Changes between Version 3 and Version 4 of TracModPython


Ignore:
Timestamp:
Dec 13, 2004, 12:32:56 AM (19 years ago)
Author:
dju`
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v3 v4  
    2626
    2727Note that the option ''TracUriRoot'' may or may not be necessary in your setup. Try without first, and if the URLs produced by Trac look wrong, add the ''TracUriRoot'' option.
     28
     29== Setting up a project on the root of the webserver ==
     30
     31To install Trac on the root of the webserver (in a virtual host context for example) and make it available at ''!http://some-hostname/'' URL, use the following:
     32
     33{{{
     34<LocationMatch "^/(?!trac/)">
     35   SetHandler mod_python
     36   PythonHandler trac.ModPythonHandler
     37   PythonOption TracUriRoot "/"
     38   PythonOption TracEnv /var/trac/myproject
     39</LocationMatch>
     40}}}
     41
     42The regular expression used in the !LocationMatch directive permits clients to escape mod_python and access Trac "real" files (located at {{{/var/www/some-hostname/htdocs/trac/}}} on the filesystem). Any other URLs will be handled by mod_python.
    2843
    2944== Setting up multiple projects ==