Matthew
The documentation at http://projects.edgewall.com/trac/wiki/TracModPython header 'Virtual Host Configuration' is where I got the <Directory /> configuration from. So is the documentation wrong?

I have just installed the latest mod_python (3.1.3) since I saw somewhere that that might be the problem.

My trac environment is at /var/trac/monex, which is where I run the built-in server

tracd --port 8005 /var/trac/monex/

Then the URL http://83.138.144.120:8005/ works OK.
---------------

Some progress. Latest version of config is

<VirtualHost *:8003>
 DocumentRoot /var/trac/monex
 <Location />
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv " /var/trac/monex"
   PythonOption TracUriRoot /trac/monex
 </Location>
</VirtualHost>

Requesting the url http://83.138.144.120:8003 gives me a server error as below.

[Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch! result = object(req) [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 193, in handler! mpr = ModPythonRequest(req, options) [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 64, in __init__! raise ValueError, \ [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: ValueError: TracRootUri set to /trac/monex but request URL starts with / [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch! result = object(req) [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 193, in handler! mpr = ModPythonRequest(req, options) [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 64, in __init__! raise ValueError, \ [Tue Jan 03 14:54:09 2006] [error] [client 82.70.164.174] PythonHandler trac.web.modpython_frontend: ValueError: TracRootUri set to /trac/monex but request URL starts with /favicon.ic



_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to