Changes between Version 1 and Version 2 of TracModPython
- Timestamp:
- Jan 30, 2006, 11:09:16 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracModPython
v1 v2 2 2 3 3 Trac supports [http://www.modpython.org/ mod_python], which speeds up Trac's response times considerably and permits use of many Apache features not possible with [wiki:TracStandalone tracd]/mod_proxy. 4 5 Be sure to grab mod_python 3.1.3 and later for ''SetHandler'' ''mod_python'' directive to work. Also, older versions may generate an internal error (see [http://projects.edgewall.com/trac/ticket/1090 #1090])6 4 7 5 == Simple configuration == … … 16 14 <Location /projects/myproject> 17 15 SetHandler mod_python 18 PythonHandler trac. ModPythonHandler16 PythonHandler trac.web.modpython_frontend 19 17 PythonOption TracEnv /var/trac/myproject 20 18 PythonOption TracUriRoot /projects/myproject … … 43 41 }}} 44 42 43 45 44 == Setting up multiple projects == 46 45 … … 49 48 <Location /projects> 50 49 SetHandler mod_python 51 PythonHandler trac. ModPythonHandler50 PythonHandler trac.web.modpython_frontend 52 51 PythonOption TracEnvParentDir /var/trac 53 52 PythonOption TracUriRoot /projects … … 74 73 }}} 75 74 75 == Virtual Host Configuration == 76 77 Below is the sample configuration required to set up your trac as a virtual server (i.e. when you access it at the URLs like 78 !http://trac.mycompany.com): 79 80 {{{ 81 <VirtualHost * > 82 DocumentRoot /var/trac/myproject 83 ServerName trac.mycompany.com 84 <Directory /> 85 SetHandler mod_python 86 PythonHandler trac.web.modpython_frontend 87 PythonOption TracEnv /var/trac/myproject 88 PythonOption TracUriRoot / 89 </Directory> 90 <Location /login> 91 AuthType Basic 92 AuthName "MyCompany Trac Server" 93 AuthUserFile /var/trac/myproject/.htusers 94 Require valid-user 95 </Location> 96 </VirtualHost> 97 }}} 98 76 99 == Troubleshooting == 77 100 … … 88 111 === Win32 Issues === 89 112 90 If you run trac with mod_python on Windows, attachments will not work. 113 If you run trac with mod_python (3.1.3 or 3.1.4) on Windows, 114 uploading attachments will '''not''' work. 115 This is a known problem which we can't solve cleanly at the Trac level. 91 116 92 There is a (simple) workaround for this which is to apply the patch attached to 93 ticket [http://projects.edgewall.com/trac/ticket/554 #554]. 117 However, there is a workaround for this at the mod_python level, 118 which is to apply the following patch [http://projects.edgewall.com/trac/attachment/ticket/554/util_py.patch attachment:ticket:554:util_py.patch] 119 to the (Lib/site-packages)/modpython/util.py file. 120 121 If you don't have the `patch` command, that file can be replaced with the [http://svn.apache.org/viewcvs.cgi/httpd/mod_python/trunk/lib/python/mod_python/util.py?rev=103562&view=markup fixed util.py] (fix which, although done prior to the 3.1.4 release, is ''not'' 122 present in 3.1.4). 94 123 95 124 === OS X issues ===