Changes between Version 28 and Version 29 of TracModPython
- Timestamp:
- Jul 8, 2005, 12:11:16 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModPython
v28 v29 53 53 AuthUserFile /var/trac/myproject/.htaccess 54 54 Require valid-user 55 </Location> 56 }}} 57 58 If your trac installation isn't installed in your Python path, you'll have to tell Apache where to find the {{{trac.ModPythonHandler}}} module by adding this line to the {{{<Location>}}} section: 59 60 {{{ 61 <Location "/projects/myproject"> 62 PythonPath "sys.path+['/path/to/trac']" 63 ... 55 64 </Location> 56 65 }}} … … 84 93 }}} 85 94 95 86 96 The path in the last {{{<Location>}}} block should match your {{{htdocs_location}}}. The directive "{{{SetHandler None}}}" allows us to escape mod_python and have Apache serve the static files (located at {{{/var/www/trac.example.org/htdocs/trac/}}} on the filesystem in this example). Any other URLs will be handled by mod_python. 87 97